DartLint class abstract

The dart lint base

Inheritance
Implementers

Constructors

DartLint()

Properties

addIgnoreForThisFileFix bool
no setter
addIgnoreForThisLineFix bool
no setter
astVisitor → AstVisitor<void>?
if has, do not use use CandiesAnalyzerPlugin.astVisitor CandiesLintsAstVisitor
no setter
code String
The name, as a string, of the error code associated with this error.
no setterinherited
contextMessages List<DiagnosticMessage>?
Additional messages associated with this diagnostic that provide context to help the user understand the diagnostic.
no setterinherited
correction String?
The correction message to be displayed for this error. The correction message should indicate how the user can fix the error. The field is omitted if there is no correction message associated with the error code.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
message String
The location associated with the error. The message to be displayed for this error. The message should indicate what is wrong with the code and why it is wrong.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
severity → AnalysisErrorSeverity
The severity of the error.
no setterinherited
type → AnalysisErrorType
The type of the error.
no setterinherited
url String?
The URL of a page containing documentation associated with this error.
no setterinherited

Methods

accept(ResolvedUnitResult result, CandiesAnalyzerPluginIgnoreInfo ignoreInfo) → void
analyze(AstNode node) bool
astNodeToLocation(ResolvedUnitResult result, SyntacticEntity node) → Location
clearCacheErrors(String path) List<DartAnalysisError>?
getAllCacheErrors() Iterable<DartAnalysisError>
getCacheErrors(String path) List<DartAnalysisError>?
getDartFix({required ResolvedUnitResult resolvedUnitResult, required String message, required void buildDartFileEdit(DartFileEditBuilder builder), ImportPrefixGenerator? importPrefixGenerator}) Future<SourceChange>
getDartFixes(ResolvedUnitResult resolvedUnitResult, AstNode astNode) Future<List<SourceChange>>
Quick fix for lint
ignoreFile(ResolvedUnitResult result) bool
if you want to ignore analysis this file
ignoreForThisFile({required ResolvedUnitResult resolvedUnitResult, required CandiesAnalyzerPluginIgnoreInfo ignore, bool formatAll = true}) Future<SourceChange>
ignoreForThisLine({required ResolvedUnitResult resolvedUnitResult, required CandiesAnalyzerPluginIgnoreInfo ignore, required Location location, required String code, bool formatAll = true}) Future<SourceChange>
ignoreLint(SyntacticEntity offset, AstNode node) bool
if you want to ignore this error
matchLint(AstNode node) → SyntacticEntity?
call this if DartLint.astVisitor is null and use CandiesAnalyzerPlugin.astVisitor CandiesLintsAstVisitor
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reportLint(SyntacticEntity offset, AstNode node) → void
report lint if you use DartLint.astVisitor
toAnalysisErrorFixes({required DartAnalysisError error}) Future<AnalysisErrorFixes>
toDartAnalysisError({required ResolvedUnitResult result, required Location location, required AstNode astNode, required CandiesAnalyzerPluginIgnoreInfo ignoreInfo, required CandiesAnalyzerPluginConfig? config}) DartAnalysisError
toDartAnalysisErrorFixesStream({required EditGetFixesParams parameters, required AnalysisContext analysisContext}) Stream<AnalysisErrorFixes>
toDartAnalysisErrors({required ResolvedUnitResult result, required CandiesAnalyzerPluginIgnoreInfo ignoreInfo, required CandiesAnalyzerPluginConfig? config}) Iterable<DartAnalysisError>
toString() String
A string representation of this object.
inherited

Operators

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