SourceEqualityRule class
Warn when a translation value equals the source value byte-for-byte. Usually means the AI agent left a placeholder, the import tool copied the source through, or the reviewer hasn't gotten to that key yet.
False positives: brand names ("Spotify" stays "Spotify" in every
locale), one-letter codes ("X", "•"), and entries the reviewer has
explicitly accepted. The escape hatch is @key.locked: true —
locking a translation tells the reviewer "yes, this is intentional"
and silences the warning.
Constructors
- SourceEqualityRule()
-
const
Properties
- defaultSeverity → IssueSeverity
-
Default severity. May be overridden per-issue.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Stable rule identifier (snake_case). Used by the report formatter
to group findings and by users to silence/ack via state file
(post-v1.0).
no setteroverride
- 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
-
run(
DialectProject project) → List< Issue> -
Inspect
projectand return findings. May return an empty list. Should NOT throw — turn unexpected conditions into Issues so the report surfaces them rather than crashing.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited