netglade_analysis 2.0.0-rc.1 copy "netglade_analysis: ^2.0.0-rc.1" to clipboard
netglade_analysis: ^2.0.0-rc.1 copied to clipboard

Lint rules for Dart and Flutter used internally at netglade.

netglade

Developed with 💚 by netglade

ci pub package license: MIT style: netglade analysis Discord


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: ^2.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_analysisstyle: netglade analysis

[![style: netglade analysis](https://img.shields.io/badge/style-netglade_analysis-26D07C.svg)](https://pub.dev/packages/netglade_analysis)
18
likes
0
pub points
53%
popularity

Publisher

verified publishernetglade.cz

Lint rules for Dart and Flutter used internally at netglade.

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

More

Packages that depend on netglade_analysis