DartFix class abstract
A base class for defining quick-fixes inside Dart files.
For usage information, see https://github.com/invertase/dart_custom_lint/blob/main/docs/fixes.md#Defining-dart-fix
Constructors
- DartFix()
Properties
-
filesToAnalyze
→ List<
String> -
A list of glob patterns matching the files that run cares about.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
CustomLintResolver resolver, ChangeReporter reporter, CustomLintContext context, AnalysisError analysisError, List< AnalysisError> others) → void -
Emits lints for a given file.
inherited
-
startUp(
CustomLintResolver resolver, CustomLintContext context) → Future< void> -
Emits lints for a given file.
override
-
testAnalyzeAndRun(
File file, AnalysisError analysisError, List< AnalysisError> others) → Future<List< PrioritizedSourceChange> > - Analyze a Dart file and runs this fix in test mode.
-
testRun(
ResolvedUnitResult result, AnalysisError analysisError, List< AnalysisError> others, {Pubspec? pubspec}) → Future<List< PrioritizedSourceChange> > - Runs this fix in test mode.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited