AuditRule class abstract
The contract every audit rule must implement.
Adding a new rule means creating one file in lib/rules/ that extends
this class and registering it in lib/core/rules_engine.dart. No other
code in the system needs to change.
- Implementers
- AvoidForEachRule
- AvoidInlineTextStyleRule
- BusinessLogicInWidgetRule
- CancelSubscriptionsRule
- CloseSinksRule
- DeepWidgetNestingRule
- DisposeControllersRule
- EmptyCatchRule
- HardcodedSecretRule
- HardcodedSizeRule
- HardcodedUrlRule
- HugeBuildMethodRule
- InsecureHttpRule
- LongMethodRule
- MissingConstRule
- MissingKeyInListRule
- MissingTryCatchRule
- PreferListViewBuilderRule
- PrintInProductionRule
- TodoCommentRule
- UnsafeStorageRule
Constructors
Properties
- category → String
-
Category bucket for grouping in the report.
One of: architecture, performance, memory, ui, api, security, quality.
no setter
- defaultSeverity → Severity
-
Default severity if not overridden by
.flutter_audit.yaml.no setter - description → String
-
One-line description shown in
flutter_audit rulesoutput.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Stable, snake_case identifier shown in reports and config files.
Example:
'missing_const'.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
check(
ParsedFile file) → List< Issue> - Inspect a parsed file and return any findings.
-
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