ExitCodes class
Exit codes for different scenarios
Follows Unix convention and matches dart analyze, dependency_validator:
0 = clean / success
1 = violations found (CI should fail the build)
2 = tool error (bad config, missing pubspec.yaml, no backup, parse failure)
3 = invalid CLI arguments
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
Constants
- invalidArguments → const int
- Invalid CLI arguments (unknown flag, incompatible option combination).
- success → const int
- Success — no violations found, or violations were fixed successfully.
- toolError → const int
- Tool error — missing pubspec.yaml, no backup exists, parse failure, or any unrecoverable internal error.
- violationsFound → const int
- Violations found — unused deps, wrong section, or duplicates detected. Also used when an apply operation itself fails (couldn't fix the issues).