LockIntegrityRule class

A lock must record WHAT it approved: @key.locked: true is only valid alongside a source_hash captured at lock time.

The lock's promise is "a human approved this translation of THAT source". A bare boolean lock keeps the first half and loses the second — when the English later changes, nothing can tell that the approval predates the change, so the stale translation ships silently under a human's name. With the hash, the lock holds but the entry reports locked + stale (stale_translation), which a human clears by re-reviewing and re-locking.

Inheritance

Constructors

LockIntegrityRule()
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 project and 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