austerity 1.2.0 copy "austerity: ^1.2.0" to clipboard
austerity: ^1.2.0 copied to clipboard

Dart and Flutter static code analysis, but not for the faint hearted. This code tries to turn all violations in to red squiggly lines

austerity #

You lack discipline! It's ok, though. This is like having discipline.

This package attempts to use every Dart and Flutter code rule available that doesn't cause major headaches, is not incompatible with other rules, and turns the error severity up to error. That means the code will display errors when you do something wrong. Use this package to get the strongest warnings about code violations, and use analysis_options.yaml to dial it back when you need to.

This is what you will see when you do naughty things errors

This library takes advantage of almost all the rules in Dart 3, but feel free to log any missing rules.

Use the package #

  • Install the package in the pubspec.yaml
  • Add this line at the top of your analysis_options.yaml
include: package:austerity/analysis_options.yaml

Configure Rules #

You can easily turn the rules off or change the severity to warning. I dialed down a couple of rules due to personal preference, but you can see all of these in the comments and adjust these for yourself. You have to understand that there are two types of settings: linters and analyzer rules. Most analyzer rules have a corresponding linter. You can remove the linter or change the severity of the analyzer rule. See the official documentation here.

errors

Avoiding Breaking Changes #

These analysis options change regularly. If new linters appear for the language, they will appear here and break your code. To avoid this, use a specific version of this package.

✔️ Stable austerity: 0.0.8-beta

❌ Potential Breaking Changes austerity: ^0.0.8-beta

29
likes
160
pub points
71%
popularity

Publisher

verified publisherchristianfindlay.com

Dart and Flutter static code analysis, but not for the faint hearted. This code tries to turn all violations in to red squiggly lines

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on austerity