ProgressTracker class

Tracks and reports analysis progress across files.

Enabled by default. Disable via: SAROPA_LINTS_PROGRESS=false

Properties

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
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

analyzedFiles → Set<String>
Unmodifiable view of all file paths analyzed in this session.
no setter
expectedFileCount → int
Total project Dart files discovered at session start (the analysis denominator), or 0 when discovery has not run / found too few files.
no setter
hasReanalyzedFile → bool
Returns true if a previously-completed file has been re-analyzed, indicating a new build/analysis session has started.
no setter
isAbortRequested → bool
Returns true if abort was requested via .saropa_stop sentinel file.
no setter
isFileOnly → bool
Returns true if violations should go to the report file only, not the Problems tab.
no setter
isLimitReached → bool
Returns true if issue limit has been reached.
no setter
maxIssues → int
The configured maximum issues for the Problems tab.
no setter
reportData → ProgressTrackerData
Get a snapshot of all tracking data for report generation.
no setter
shouldReportToProblems → bool
Whether violations should be sent to the Problems tab delegate.
no setter

Static Methods

clearReanalysisFlag() → void
Clear the re-analysis flag after the reporter has acted on it.
discoverFiles(String projectPath) → int
Auto-discover dart files in a directory for ETA estimation. Call this early to enable % progress. Returns estimated count.
recordFile(String path) → void
Record that a file is being analyzed and potentially report progress.
recordViolation({String? severity, String? ruleName, int line = 0, int offset = 0}) → void
Record a violation found for the current file. severity should be 'ERROR', 'WARNING', or 'INFO' ruleName is the lint rule that triggered
releasePerFileMaps() → void
Free per-file tracking maps to reduce memory pressure.
reportSummary() → void
Report final summary when analysis completes.
reset() → void
Reset tracking state (useful between analysis runs).
setEnabledRuleCount(int count) → void
Set the total number of enabled rules for progress display.
setExpectedFileCount(int count) → void
Set expected total file count (if known) for % calculation.
setFileOnly({required bool fileOnly}) → void
Set the output mode.
setMaxIssues(int limit) → void
Set the maximum number of issues to show in the Problems tab.