ScanRunner class

Scans Dart files using saropa_lints rules without the plugin framework.

Constructors

ScanRunner({required String targetPath, List<String>? dartFiles, String? tier, ScanMessageSink? messageSink, bool applyExclusionsToFileList = true})

Properties

applyExclusionsToFileList bool
When dartFiles is provided, whether to apply the same exclusions as directory discovery (e.g. .g.dart, build/). Default true.
final
dartFiles List<String>?
Optional explicit list of Dart files to scan. When null or empty, files are discovered under targetPath.
final
hashCode int
The hash code for this object.
no setterinherited
messageSink ScanMessageSink?
Optional sink for all messages. When null, messages go to stdout and progress to stderr.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
targetPath String
Project root: config is loaded from here and relative dartFiles are resolved against it.
final
tier String?
Optional tier name (e.g. essential, recommended, pedantic). When set, the rule set is taken from this tier and the project's diagnostics: section is not used.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run() List<ScanDiagnostic>?
Runs the scan and returns all diagnostics found.
toString() String
A string representation of this object.
inherited

Operators

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