AccuracyTarget class
Optional accuracy target for a rule (for documentation and tooling).
Does not enforce; used by reports and rule-audit scripts. Wording in docs should be "target" not "guarantee"; we aim for these goals, not prove them.
Constructors
- AccuracyTarget({bool expectZeroFalsePositives = false, double? minTruePositiveRate, String? description})
-
const
Properties
- description → String?
-
Optional human-readable description of the target.
final
- expectZeroFalsePositives → bool
-
When true, the rule aims for zero false positives (e.g. bug, code smell).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- minTruePositiveRate → double?
-
Minimum true positive rate (e.g. 0.8 for 80%). Used for vulnerability
and security hotspot rules where some FPs are acceptable if TP rate is high.
final
- 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited