custom_lint_core library

Classes

Assist
A base class for assists.
ChangeBuilder
A class for modifying
ChangeReporter
A class used for requesting a ChangeBuilder.
CustomLintConfigs
Configurations representing the custom_lint metadata in the project's analysis_options.yaml.
CustomLintContext
An object for state shared between multiple LintRule/Assist/Fix...
CustomLintResolver
A class used to interact with files and possibly emit lints of out it.
DartAssist
A base class for creating assists inside Dart files.
DartFix
A base class for defining quick-fixes inside Dart files.
DartLintRule
A base class for emitting warnings/errors/infos inside Dart files.
Fix
A base class for defining quick-fixes for a LintRule
LintCode
A class representing an ErrorCode for LintRules.
LintOptions
Option information for a specific LintRule.
LintRule
A base class for defining quick-fixes for a LintRule
LintRuleNodeRegistry
NodeLintRegistry
The container to register visitors for separate AST node types.
PluginBase
A base class for custom analyzer plugins
TypeChecker
An abstraction around doing static type checking at compile/build time.

Extensions

AnalysisErrorSourceRange on AnalysisError
Adds sourceRange
SyntacticEntitySourceRange on SyntacticEntity
Adds sourceRange

Functions

encodePrioritizedSourceChanges(Iterable<PrioritizedSourceChange> changes, {JsonEncoder? encoder, Map<String, String>? sources, String? relativePath}) String
Encodes a list of PrioritizedSourceChange into a string.
matcherNormalizedPrioritizedSourceChangeSnapshot(String filePath, {JsonEncoder? encoder, Map<String, String>? sources, String? relativePath}) → Matcher
Expects that a List<PrioritizedSourceChange> matches with a serialized snapshots.

Exceptions / Errors

UnresolvedAnnotationException
Exception thrown when TypeChecker fails to resolve a metadata annotation.