austerity
1.3.0, released 12 months ago by christianfindlay.com
Maximum strictness Dart and Flutter static analysis configuration.
WASM-ready
What it does
Enables every non-conflicting Dart lint rule and sets their severity to error, turning all violations into red squiggly lines in the IDE. Allows overriding specific rules in an analysis_options.yaml file.
AI-written summary of version 1.3.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want maximum static analysis strictness in your Dart or Flutter project
- You want all lint violations to show up as errors with red squiggles
Skip it when
- You prefer warning levels over strict errors for lint rules
- You are working on a legacy codebase where strict rules would cause excessive friction
Strengths
- Enforces strict code quality and consistency
- Easy to customize by overriding individual rules in analysis_options.yaml
Weaknesses
- May break builds or add significant friction when new Dart versions add strict rules
- Not for the faint-hearted due to maximum strictness
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Include the package in your analysis_options.yaml file.
include: package:austerity/analysis_options.yaml
analyzer:
errors:
public_member_api_docs: ignoreAlternatives
Packages that do the same job and could replace austerity.
- lints
Official recommended lint rules from the Dart team which are less aggressive.
86Compare - flutter_lints
Official recommended lint rules specifically tailored for Flutter applications.
83Compare