Issue class

A single check finding. The report formatter turns these into path/to/file.arb:42 rule_name message lines plus an indented hint: line when one is set.

Constructors

Issue({required IssueSeverity severity, required String ruleName, required String message, String? locale, String? key, String? file, int? line, String? hint})

Properties

file String?
Absolute or repo-relative path to the file containing the issue. null only when the rule is reporting a project-wide condition.
final
hashCode int
The hash code for this object.
no setterinherited
hint String?
Concrete remediation suggestion. Real prose, not a stub — this is the "soft-mode hints must be real" promise. Examples: "Run dialect describe to backfill missing descriptions." "Preserve placeholder names byte-identically across translations." Optional; some rules don't need one.
final
key String?
Key the issue is about, if any.
final
line int?
1-based line number of the issue. Resolved from ArbFile.entryLines populated by the parser.
final
locale String?
Target locale this issue applies to (e.g. es, ar). null for source-only issues (orphan metadata, source-ARB-level problems).
final
message String
One-line problem description. Should be specific enough that a reader can act on it without reading the surrounding context.
final
ruleName String
Stable identifier the report uses to group issues, and that users will reference when filing bugs. Snake_case, e.g. missing_keys, plural_categories.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
severity IssueSeverity
warning or error. May be promoted by --strict.
final

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