LintCode class

Diagnostic codes which are not reported by default.

Lint codes are only reported when a lint rule (either a first-party lint rule, or one declared in an analyzer plugin) is enabled.

Inheritance
Annotations
  • @AnalyzerPublicApi(message: 'exported by lib/error/error.dart')

Constructors

LintCode.new(String name, String problemMessage, {String? correctionMessage, bool hasPublishedDocs = false, String? uniqueName, DiagnosticSeverity severity = DiagnosticSeverity.INFO})
const

Properties

correctionMessage String?
The template used to create the correction to be displayed for this diagnostic, or null if there is no correction information for this diagnostic. The correction should indicate how the user can fix the diagnostic.
no setterinherited
errorSeverity DiagnosticSeverity
no setterinherited
hashCode int
The hash code for this object.
no setteroverride
hasPublishedDocs bool
Return true if diagnostics with this code have documentation for them that has been published.
finalinherited
isIgnorable bool
Whether a finding of this diagnostic is ignorable via comments such as // ignore: or // ignore_for_file:.
no setterinherited
isUnresolvedIdentifier bool
Whether this error is caused by an unresolved identifier.
finalinherited
name String
The name of the error code.
finalinherited
numParameters int
no setterinherited
problemMessage String
The template used to create the problem message to be displayed for this diagnostic. The problem message should indicate what is wrong and why it is wrong.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
severity DiagnosticSeverity
The severity of the diagnostic.
final
type DiagnosticType
The type of the error.
no setteroverride
uniqueName String
The unique name of this error code.
finalinherited
url String?
Return a URL that can be used to access documentation for diagnostics with this code, or null if there is no published documentation.
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override