flutter_quality_ratchet 0.1.1
flutter_quality_ratchet: ^0.1.1 copied to clipboard
A quality ratchet for Dart and Flutter projects: freeze today's lint debt in a baseline that may only shrink, and fail CI on every new violation.
Changelog #
0.1.1 #
- English README (Arabic version moved to README.ar.md)
- Shorter package description
- Add example
0.1.0 #
First release.
quality_ratchetCLI (alsodart run flutter_quality_ratchet) with the commandsinit,check,update-baseline,seed-ruleandexplain.- Config file
quality_ratchet.yaml: include/exclude globs, baseline path and a list of rules, each with its own id and message. - Rule types:
max_file_lines,max_function_lines,forbidden_imports,forbidden_patternsandhardcoded_strings. - Ratchet semantics: new or grown violations fail, a stale baseline must be
lowered,
update-baselineonly shrinks, moved debt is allowed while a rule's total holds, and--base <ref>adds the raise guard against the baseline at the merge-base (a hand raise with areasonis a warning). - Output formats
text,github(workflow annotations plus a job summary) andjson. Exit codes: 0 clean, 1 violations, 2 usage or config error. - Composite GitHub Action (
action.yml).