dart_code_metrics 5.7.6 copy "dart_code_metrics: ^5.7.6" to clipboard
dart_code_metrics: ^5.7.6 copied to clipboard

discontinued

Software analytics tool that helps developers analyse and improve software quality.

Changelog #

Unreleased #

  • chore: restrict analyzer version to >=5.1.0 <5.14.0.

5.7.4 #

  • chore: restrict analyzer version to >=5.1.0 <5.13.0.

5.7.3 #

  • chore: restrict analyzer version to >=5.1.0 <5.12.0.

5.7.2 #

  • chore: update website links.

5.7.1 #

  • chore: restrict analyzer version to >=5.1.0 <5.11.0.

5.7.0 #

  • fix: handle dynamics in map literals for avoid-dynamic.
  • fix: change anti-patterns default severity to warning.
  • feat: add static code diagnostic prefer-define-hero-tag.
  • chore: restrict analyzer version to >=5.1.0 <5.9.0.
  • feat: add static code diagnostic avoid-substring.
  • fix: correctly track prefixes usage for check-unused-code.
  • fix: visit only widgets for use-setstate-synchronously.

5.6.0 #

5.6.0-dev.1 #

5.5.1 #

5.5.0 #

5.4.0 #

5.3.0 #

5.2.1 #

  • fix: avoid null check exception in the analyzer.

5.2.0 #

5.1.0 #

5.0.1 #

  • fix: correctly available check rule names.

5.0.0 #

  • feat: Breaking change rename member-ordering-extended to member-ordering, discarding the old implementation.
  • feat: support report to the json file option for the analyze command.
  • feat: make CliRunner a part of public API in order to support transitive executable calls use-case.
  • feat: add static code diagnostic avoid-cascade-after-if-null.
  • feat: Breaking change handle widget members order separately in member-ordering.
  • feat: support dynamic method names for member-ordering.
  • fix: check of constructor exist for prefer-iterable-of
  • feat: Breaking change change severity for avoid-banned-imports, prefer-trailing-comma, ban-name rules.
  • feat: support proxy calls for check-unused-l10n.
  • feat: Breaking change cleanup public API.
  • chore: restrict analyzer version to >=5.1.0 <5.3.0.
  • feat: add print-config option to all commands.
  • feat: add validation for rule names in analysis_options.yaml both for the analyze command and the plugin.
  • feat: support includes in the rules config.
  • fix: ignore @override methods for avoid-redundant-async.

4.21.2 #

4.21.1 #

  • fix: stop plugin flickering after migration to new api.

4.21.0 #

4.20.0 #

  • feat: add logger and progress indication.
  • fix: fix excludes for rules intended only for tests.
  • chore: changed min SDK version to 2.18.0.
  • chore: restrict analyzer version to >=5.1.0 <5.2.0.
  • chore: restrict analyzer_plugin version to >=0.11.0 <0.12.0.
  • fix: make avoid-redundant-async correctly handle yield.

4.19.1 #

4.19.0 #

4.18.3 #

4.18.2 #

  • fix: use empty analysis options exclude to properly resolve units and speed up commands analysis.

4.18.1 #

4.18.0 #

4.18.0-dev.2 #

  • chore: restrict analyzer version to >=4.1.0 <4.7.0.

4.18.0-dev.1 #

  • chore: restrict analyzer version to >=4.1.0 <4.5.0.
  • chore: restrict analyzer_plugin version to >=0.11.0 <0.12.0.
  • feat: replace relative path in reporters output with absolute to support IDE clicks.

4.17.1 #

  • chore: restrict analyzer version to >=4.0.0 <4.7.0.

4.17.0 #

4.17.0-dev.1 #

  • feat: add static code diagnostic avoid-expanded-as-spacer.
  • feat: migrate to new analyzer plugins API.
  • chore: changed min SDK version to 2.17.0.
  • chore: restrict analyzer version to >=4.1.0 <4.3.0.
  • chore: restrict analyzer_plugin version to >=0.11.0 <0.12.0.

4.16.0 #

4.15.2 #

4.15.1 #

  • chore: restrict analyzer version to >=2.4.0 <4.1.0.
  • chore: restrict analyzer_plugin version to >=0.8.0 <0.11.0.

4.15.0 #

4.14.0 #

4.13.0 #

4.12.0 #

4.11.0 #

4.11.0-dev.1 #

4.10.1 #

  • fix: restore analyze command as default command.

4.10.0 #

  • feat: add check-unused-code command with monorepos support.
  • feat: support excludes for a separate anti-pattern.
  • feat: improve check-unused-l10n command, ignore private members and cover supertype member calls.
  • feat: add new command flag --no-congratulate.
  • feat: add --version flag to print current version of the package.
  • feat: support Flutter internal entry functions for check-unused-files and check-unused-code.
  • fix: cyclomatic complexity calculation for functions with internal lambdas.
  • fix: ignore private variables in avoid-global-state rule.
  • chore: restrict analyzer version to >=2.4.0 <3.3.0.

4.10.0-dev.2 #

4.10.0-dev.1 #

  • feat: add check unused code command.
  • feat: support excludes for a separate anti-pattern.
  • feat: ignore private members for check-unused-l10n command.
  • fix: ignore private variables in avoid-global-state rule.
  • chore: restrict analyzer version to >=2.4.0 <3.2.0.

4.9.1 #

4.9.0 #

4.8.1 #

  • feat: add cli options for fatal exit if unused files or l10n are found.

4.8.0 #

4.7.0 #

4.6.0 #

  • feat: CLI now can be compiled to and used as compiled executable.

4.5.0 #

4.5.0-dev.3 #

  • fix: make check-unused-l10n report class fields.
  • chore: restrict analyzer version to >=2.4.0 <2.8.0.

4.5.0-dev.2 #

4.5.0-dev.1 #

  • chore: changed min SDK version to 2.14.0.
  • chore: restrict analyzer version to >=2.4.0 <2.6.0.
  • chore: changed the supported analyzer_plugin version to ^0.8.0.
  • feat: add static code diagnostic prefer-correct-identifier-length, prefer-first.

4.4.0 #

  • feat: introduce check-unused-l10n command.
  • feat: add static code diagnostic prefer-const-border-radius.
  • feat: improve static code diagnostic prefer-extracting-callbacks: don't trigger on empty function blocks and ignore Flutter builder functions.
  • feat: improve unused files check, add support for vm:entry-point annotation.
  • fix: compute Number of Parameters only for functions and methods.
  • fix: Number of Parameters skip copyWith methods.
  • fix: skip synthetic tokens while compute Source lines of Code.
  • fix: update Maintainability Index metric comment message.

4.3.3 #

  • Fix unhandled exception while parsing analysis_options.yaml

4.3.2 #

  • Restrict analyzer version to '>=2.1.0 <2.4.0'

4.3.1 #

  • Update .pubignore

4.3.0 #

  • Add support for global rules-exclude.
  • Add Halstead Volume metric.
  • Add ability to configure anti-pattern severity.
  • Add --fatal-warnings, --fatal-performance, --fatal-style cli arguments.
  • Deprecated GitHub reporter.

4.3.0-dev.1 #

  • Add support for global rules-exclude.
  • Add Halstead Volume metric.
  • Add ability to configure anti-pattern severity.
  • Add --fatal-warnings, --fatal-performance, --fatal-style cli arguments.

4.2.1 #

4.2.0 #

4.2.0-dev.3 #

  • Changed the supported analyzer version to ^2.1.0.

4.2.0-dev.2 #

  • Changed the supported analyzer version to ^2.0.0.
  • Changed the supported analyzer_plugin version to ^0.7.0.

4.2.0-dev.1 #

4.1.0 #

  • Add better monorepos support for CLI
  • Add support merge analysis options with detail rule config.

4.0.2-dev.1 #

  • Add support for analysis options auto discovery.

4.0.1 #

4.0.0 #

4.0.0-dev.5 #

4.0.0-dev.4 #

  • Fix check unused files for files that are listed in the analyzer exclude section

4.0.0-dev.3 #

  • Fix plugin integration null reference.

4.0.0-dev.2 #

  • Switch on absolute path in plugin mode for compatibility with LSP mode.

4.0.0-dev.1 #

3.3.6 #

  • Fix analyzer plugin quick fix action performs on wrong file for file with part of.

3.3.5 #

3.3.4 #

  • Fix GitHub reporter

3.3.3 #

3.3.2 #

  • Temporary lock meta package upper bound range to 1.3.x version.

3.3.1 #

  • Temporary lock analyzer package upper bound range to 1.5.x version.

3.3.0 #

3.2.3 #

  • Fix anti-patterns, metrics and rules documentation url.

3.2.2 #

  • Update deprecation version for Lines of Executable Code ConsoleReporter, MetricsAnalysisRunner, MetricsAnalyzer, MetricsRecordsBuilder and MetricsRecordsStore.

3.2.1 #

  • Remove unnecessary scan by Lines of Executable Code.

3.2.0 #

  • Deprecate ConsoleReporter, MetricsAnalysisRunner, MetricsAnalyzer, MetricsRecordsBuilder and MetricsRecordsStore.
  • Improve static code diagnostics avoid-returning-widgets.

3.2.0-dev.1 #

3.1.0 #

3.0.0 #

  • Rename all rules config items from snake_case to kebab-case with backward compatibility.
  • Rework JSON report format.
  • Stable null safety release.

3.0.0-nullsafety.2 #

  • Changed the supported analyzer version to ^1.4.0.
  • Changed the supported analyzer_plugin version to ^0.6.0.

3.0.0-nullsafety.0 #

  • Set min SDK version to 2.12.0.
  • Changed the supported analyzer version to ^1.3.0.
  • Changed the supported analyzer_plugin version to ^0.5.0.
  • Remove obsolete rule prefer-trailing-comma-for-collection, potential-null-dereference.
  • Rename cli arguments:
    • ignore-files to exclude
    • maximum-nesting to maximum-nesting-level
    • number-of-arguments to number-of-parameters
  • Update README.
  • Add static code diagnostic member-ordering-extended.

2.5.0 #

  • Backport static code diagnostics member-ordering-extended, avoid-returning-widgets.
  • Backport fix excludes on Windows OS.

2.4.1 #

  • Allow configuring output directory for HTML reporter.
  • Fixed bug with missing CSS files in HTML report directory.

2.4.0 #

2.3.2 #

  • Add Gitlab Code Quality support in Code Climate report.

2.3.1 #

  • Changed the support version range of the analyzer to >=0.39.3 <0.42.0.

2.3.0 #

  • Add Maximum Nesting metric.

2.2.0 #

2.1.1 #

  • Explained usage with Flutter in README.

2.1.0 #

  • Add static code diagnostics no-equal-arguments, potential-null-dereference.
  • Improve HTML report.

2.0.0 #

  • Removed deprecated AnalysisOptions.from use AnalysisOptions.fromMap instead.
  • Removed deprecated Config.linesOfCodeWarningLevel use Config.linesOfExecutableCodeWarningLevel instead.
  • Removed deprecated MetricsAnalysisRecorder.startRecordFile and MetricsAnalysisRecorder.endRecordFile use MetricsRecordsStore.recordFile instead.
  • Breaking Change: MetricsAnalyzer.runAnalysis now accept array with folder paths.
  • Add static code anti-patterns long-parameter-list.
  • Set min SDK version to >=2.8.0.

1.10.0 #

1.9.0 #

1.8.1 #

1.8.0 #

1.7.1 #

  • Support analyzer_plugin version 0.3.0.

1.7.0 #

1.6.0 #

  • Add experimental static code diagnostics prefer-trailing-comma-for-collection, no-magic-number.
  • Support Number of Arguments metric in analyzer plugin.
  • Support excluding files from metrics calculation.

1.5.1 #

1.5.0 #

1.4.0 #

  • Drop dependency on built_collection.
  • Add set-exit-on-violation-level cli argument.

1.3.1 #

  • Fix get arguments count.

1.3.0 #

  • Add Number of Arguments metrics.

1.2.1 #

  • Validate root-folder argument.
  • Fix paths to analyze fail to validate with non-default root-folder.
  • Fix paths weren't validated to be inside root-folder.
  • Support factory constructors analysis.

1.2.0 #

  • Allow analyzing multiple directories.

1.1.5 #

  • Tweak console reporter.

1.1.4 #

  • Add some dartdocs.
  • Update README.
  • Add library usage example.

1.1.3 #

  • Fix validate input arguments.

1.1.2 #

  • Improve Code Climate report.

1.1.1 #

  • Added support extension methods.

1.1.0 #

  • Added support for Code Climate.

1.0.0 #

  • Initial release.