netglade_analysis 5.0.0 netglade_analysis: ^5.0.0 copied to clipboard
Lint rules for Dart and Flutter used internally at netglade.
Developed with 💚 by netglade
This package provides lint rules for Dart and Flutter which are used at netglade.
You can also check all the available Dart lint rules on linter rules site or supported lint rules site. And you can see all the available on DCM rules site.
Usage #
To use the lints, add as a dev dependency in your pubspec.yaml
:
dev_dependencies:
netglade_analysis: ^4.0.0
Then, add an include in analysis_options.yaml
:
include: package:netglade_analysis/lints.yaml
To also use Dart Code Metrics, add configuration in analysis_options.yaml
.
Then you can use its CLI tool.
dart_code_metrics:
extends:
- package:netglade_analysis/dcm.yaml
Recommendations #
Consider adding an analyzer exclude for generated, coverage, ... files.
analyzer:
exclude:
- '**/*.g.dart'
- '**/*.freezed.dart'
- test/.test_coverage.dart
- lib/generated_plugin_registrant.dart
Badge #
To indicate your project is using netglade_analysis
→
[![style: netglade analysis](https://img.shields.io/badge/style-netglade_analysis-26D07C.svg)](https://pub.dev/packages/netglade_analysis)