dart_code_metrics_presets
Flutter開発チーム向けのコード品質ツールであるDCMの事前定義されたプリセット。
DCM の事前設定プリセット
以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
DCM is an advanced linter for Dart and Flutter that helps you analyze and improve your code quality. You can find all available lint rules here.
This repository contains a list of predefined DCM presets for lints:
pubspec.yaml files.and for metrics:
Take these steps to enable a preset:
Install this package as a dev dependency:
dart pub add --dev dart_code_metrics_presets
or:
flutter pub add --dev dart_code_metrics_presets
For DCM configuration add the extents entry:
dart_code_metrics:
extends:
- package:dart_code_metrics_presets/all.yaml
To disable a rule, simply set its value to false:
dart_code_metrics:
extends:
- package:dart_code_metrics_presets/all.yaml
rules:
- avoid-banned-imports: false
To reconfigure a rule, that is included into a preset:
dart_code_metrics:
extends:
- package:dart_code_metrics_presets/all.yaml
rules:
- arguments-ordering:
child-last: true
Any other preset can be passed to the extends entry. To create a custom preset create a yaml file with the same structure as for regular DCM configuration.
用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗