687 B
687 B
3. Integrate linter into app
Date: 2022-04-22
Status
Accepted
Context
- Use linter to encourage good coding practices
- Helps optimize and increase application performance
Decision
- To use we follow these steps:
- Depend on this package as a
dev_dependencyby runningflutter pub add --dev flutter_lints. - Create an
analysis_options.yamlfile at the root of the package (alongside thepubspec.yamlfile) and include:package:flutter_lints/flutter.yamlfrom it.
- Depend on this package as a
Official document
Consequences
- The code is written standard according to the linter toolkit. Performance is improved.