LintCode class
Defines style and best practice recommendations.
Unlike WarningCode
s, which are akin to traditional static warnings from a
compiler, lint recommendations focus on matters of avoiding errors,
unintended code, maintainability, style and other best practices that might
be aggregated to define a project's style guide.
Constructors
Properties
- correctionMessage → String?
-
The template used to create the correction to be displayed for this error,
or
null
if there is no correction information for this error. The correction should indicate how the user can fix the error.no setterinherited - errorSeverity → ErrorSeverity
-
The severity of the error.
no setteroverride
- 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 error 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
error. 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
- type → ErrorType
-
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