DiagnosticsProvider class
Provides LSP diagnostics from Anteater analysis results.
Converts analysis from various engines (metrics, abstract interpretation, datalog, style rules) into LSP-compatible diagnostic messages.
Constructors
-
DiagnosticsProvider({required SourceLoader sourceLoader, MaintainabilityIndexCalculator? miCalculator, DiagnosticThresholds? thresholds, RuleRegistry? ruleRegistry, List<
String> ? excludePatterns})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- ruleRegistry → RuleRegistry
-
Gets the rule registry for configuration.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- thresholds → DiagnosticThresholds
-
Thresholds for generating warnings.
final
Methods
-
analyze(
String filePath, {String? content}) → Future< List< Diagnostic> > - Analyzes a file and returns LSP diagnostics.
-
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