solid_lints
Lints para Dart e Flutter baseados em padrões e melhores práticas da indústria de software.
🟧 Lints para Dart e Flutter com base em padrões da indústria de software e melhores práticas.
Texto original em inglês. Visite o GitHub para a versão atual.
Flutter/Dart lints configuration based on software engineering industry standards (ISO/IEC, NIST) and best practices.
For more detailed information and guidelines on using Solid Lints, please refer to the documentation:
Add dependency in your pubspec.yaml:
dev_dependencies:
solid_lints: <INSERT LATEST VERSION>
Enable the plugin and include solid_lints in your project's top-level analysis_options.yaml:
include: package:solid_lints/analysis_options.yaml
plugins:
solid_lints: <INSERT LATEST VERSION>
Also, you can use a specialized rule set designed for Dart tests.
Add an analysis_options.yaml file under the test/ directory, and include the ruleset:
include: package:solid_lints/analysis_options_test.yaml
plugins:
solid_lints: <INSERT LATEST VERSION>
Then you can see suggestions in your IDE or you can run checks manually:
dart analyze
You can customize individual rule settings in your analysis_options.yaml:
plugins:
solid_lints: <INSERT LATEST VERSION>
solid_lints:
diagnostics:
cyclomatic_complexity:
max_complexity: 10
avoid_non_null_assertion: true
To indicate that your project is using Solid Lints, you can use the following badge:
[](https://pub.dev/packages/solid_lints)