Issue class

A single audit finding.

One Issue represents one location in one file where a rule fired. Every rule produces a list of these, and the reporter aggregates them.

Constructors

Issue({required String ruleId, required String category, required Severity severity, required String message, required String filePath, required int line, required int column, String? codeSnippet, String? suggestion})
const

Properties

category String
Category for grouping, e.g. 'performance', 'memory', 'security'.
final
codeSnippet String?
The offending line of source code, for display in reports.
final
column int
1-based column number where the issue starts.
final
filePath String
Absolute or project-relative file path.
final
hashCode int
The hash code for this object.
no setterinherited
line int
1-based line number where the issue starts.
final
message String
Human-readable description of what was detected.
final
ruleId String
Unique rule identifier, e.g. 'missing_const'.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
severity Severity
Severity level for this specific finding.
final
suggestion String?
Suggested fix shown to the developer.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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