dart-code-metrics
dart-code-metrics copied to clipboard
Software analytics tool that helps developers analyse and improve software quality.
Would be nice to have separate metrics for build method, since some developers tend to bloat them. I would propose having two metrics, ``` build-method-max-length: 30 build-method-max-nesting: 5 ``` One,...
This rule requires or disallows blank lines between the given 2 kinds of statements. Properly blank lines help developers to understand the code. For example, the following configuration requires a...
Prohibiting the use of recursions, including tail recursions. Because dart [lack off support tail call optimisation](https://github.com/dart-lang/language/issues/1159) and you can obtain `Maximum call stack size exceededError`. And after that recursion is...
Its normal to have 5+ parameters in flutter if only 1..3 required. For example:  Typical API request - only 3 parameters required, but we need to have ability to...
I can use [melos](https://melos.invertase.dev/) to handle multiple packages and generate html reports from metrics, but how to use the github action provided by you to check all project packages?
it's normal? ```yaml dart_code_metrics: metrics: cyclomatic-complexity: 10 rules: - no-empty-block ``` `flutter pub run dart_code_metrics:metrics analyze lib` ``` lib/core/widgets/spin_kit_double_bounce.dart: Style Block is empty. Empty blocks are often indicators of missing...
Сurrently we have to manually update `CHANGELOG.md` for each feature. What do you think about automatically generating changelog using [conventional changelog](https://github.com/conventional-changelog/conventional-changelog) tools or GitHub action like [this one](https://github.com/TriPSs/conventional-changelog-action) ?
Running dart-code-metrics with GitHub actions taking too big time. It is more then 2 minutes for now. In compare analytics taking less then 40 seconds. Could be nice to take...
It would be useful to have `CliRunner` exported. ## Use case We have a [package](https://pub.dev/packages/mews_pedantic) where we customize analyzer rules to share the settings across our products. Recently we've added...
In Flutter can be 5-10 optional parameters. Check out all `.copyWith` methods, constructors. This rule make sense only for positional and required parameters.