This package contains analysis settings for Flutter/Dart projects and packages by Innim team.
It's stricter than pedantic.
To use the lints add a dependency in your
# If you use `unawaited()` in code, add a normal dependency. dependencies: innim_lint: ^0.4.0 # Or, if you just want `analysis_options.yaml`, it can be a dev dependency. dev_dependencies: innim_lint: ^0.4.0
then, add an include in your
Not all futures need to be awaited. By default "unawaited futures" lint enabled
which enforces that potential futures in asynchronous functions are handled somehow.
If a particular future value doesn't need to be awaited, you can call
unawaited(...) with it,
which will avoid the lint, simply because the expression no longer has type Future.
Disable some rules
You can disable some rules in your project. Add in your
linter: rules: prefer_single_quotes: false
Exclude from analysis
You can exclude some files from analysis - see Excluding code from analysis.
By default all generated code (files with
.g.dart suffix) will be excluded with this analysis settings.