dart_code_metrics 4.18.0-dev.1
dart_code_metrics: ^4.18.0-dev.1 copied to clipboard
Software analytics tool that helps developers analyse and improve software quality.
Changelog #
4.18.0-dev.1 #
- chore: restrict
analyzerversion to>=4.1.0 <4.5.0. - chore: restrict
analyzer_pluginversion to>=0.11.0 <0.12.0.
4.17.0 #
- feat: add configuration to
prefer-moving-to-variable. - feat: add flutter specific methods config to
member-ordering-extended. - feat: add static code diagnostic
avoid-duplicate-exports. - feat: add static code diagnostic
avoid-shrink-wrap-in-lists. - feat: add static code diagnostic
avoid-top-level-members-in-tests. - feat: add static code diagnostic
prefer-correct-edge-insets-constructor-rule. - feat: add static code diagnostic
prefer-enums-by-name. - feat: add suppressions for
check-unused-code,check-unused-files,check-unnecessary-nullablecommands. - fix: add zero exit to command runner.
- fix: show lint issue in html report.
- chore: restrict
analyzerversion to>=4.0.0 <4.4.0. - chore: revert
analyzer_pluginversion to>=0.10.0 <0.11.0.
4.17.0-dev.1 #
- feat: add static code diagnostic
avoid-use-expanded-as-spacer. - feat: migrate to new analyzer plugins API.
- chore: changed min
SDKversion to2.17.0. - chore: restrict
analyzerversion to>=4.1.0 <4.3.0. - chore: restrict
analyzer_pluginversion to>=0.11.0 <0.12.0.
4.16.0 #
- feat: introduce new command
check-unnecessary-nullable. - feat: add
avoid-banned-importsrule. - feat: add configuration to
prefer-extracting-callbacks. - feat: improve
checkstylereport, added metrics entries. - fix: normalize file paths after extraction from analyzed folder.
- fix: improve context root included files calculation.
- fix: resolve package with imported analysis options.
- fix: correctly handle
-symbol forprefer-commenting-analyzer-ignores. - fix: change elements equality check to overcome incorrect libs resolution.
- chore: restrict
analyzerversion to>=2.4.0 <4.2.0. - chore: clean up unnecessary nullable parameters.
- test: added test case in
prefer-const-border-radiusrule.
4.15.2 #
- feat: add the
ignored-patternsoption toformat-comment. The given regular expressions will be used to ignore comments that match them. - fix:
avoid-border-allis triggered even when it is not a const. - fix: remove duplicated and ignore void function calls for
prefer-moving-to-variable. - fix: temporary remove enums support for
prefer-trailing-comma.
4.15.1 #
- chore: restrict
analyzerversion to>=2.4.0 <4.1.0. - chore: restrict
analyzer_pluginversion to>=0.8.0 <0.11.0.
4.15.0 #
- fix:
format-commentis listing the macros from dart doc. - feat: add static code diagnostic
avoid-non-ascii-symbols. - feat: remove declaration in
prefer-immediate-return. - fix: correctly handle disabling rules with false.
- fix: dart-code-metrics crash saying
Bad state: No elementwhen running command.
4.14.0 #
- feat: add static code diagnostic
prefer-commenting-analyzer-ignores. - feat: add static code diagnostic
prefer-moving-to-variable. - fix: add check for supertypes for
avoid-non-null-assertionsrule. - fix: correctly handle nullable types of collections for
avoid-collection-methods-with-unrelated-typesrule. - fix: cover more cases in
prefer-immediate-returnrule. - fix: support index expressions for
no-magic-numberrule. - docs: update
prefer-async-awaitrule. - chore: restrict
analyzerversion to>=2.4.0 <3.4.0.
4.13.0 #
- feat: add Checkstyle format reporter.
- feat: add
prefer-immediate-returnrule
4.12.0 #
- feat: add static code diagnostics
avoid-collection-methods-with-unrelated-types,ban-name,tag-name. - fix: added parameter constant check in
avoid-border-all. - chore: restrict
analyzerversion to>=2.4.0 <3.4.0. - chore: set min
mocktailversion to^0.3.0.
4.11.0 #
- feat: add static code diagnostics
format-comment,avoid-border-all. - feat: improve
avoid-returning-widgetsbuilder functions handling. - fix: correctly handle const maps in
no-magic-number. - fix: correctly handle excluded files for
check-unused-code. - chore: activate new lint rules.
- refactor: prepare for complex metric values.
4.11.0-dev.1 #
- fix: move byte store out of driver creation to reuse it between multiple plugins.
- fix: add
monorepoflag forcheck-unused-filescommand. - fix: ignore a class usage inside
State<T>forcheck-unused-codecommand. - fix: correctly handle variables declaration for
check-unused-codecommand. - feat: add static code diagnostics
avoid-dynamic,prefer-async-await.
4.10.0 #
- feat: add
check-unused-codecommand with monorepos support. - feat: support excludes for a separate anti-pattern.
- feat: improve
check-unused-l10ncommand, ignore private members and cover supertype member calls. - feat: add new command flag
--no-congratulate. - feat: add
--versionflag to print current version of the package. - feat: support Flutter internal entry functions for
check-unused-filesandcheck-unused-code. - fix: cyclomatic complexity calculation for functions with internal lambdas.
- fix: ignore private variables in
avoid-global-staterule. - chore: restrict
analyzerversion to>=2.4.0 <3.3.0.
4.10.0-dev.2 #
- fix: support excludes and conditional imports for
check-unused-codecommand.
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-l10ncommand. - fix: ignore private variables in
avoid-global-staterule. - chore: restrict
analyzerversion to>=2.4.0 <3.2.0.
4.9.1 #
- fix:
avoid-global-stateto support static fields. - fix:
prefer-extracting-callbacksin nested widgets. - fix: correctly handle method invocations on getters and method of for
check-unused-l10ncommand.
4.9.0 #
- feat: add static code diagnostics
avoid-global-state,avoid-unrelated-type-assertions. - feat: support extensions and static getters for
check-unused-l10n. - feat: improve prefer-correct-type-name,
prefer-match-file-namerules. - feat: add
delete-filesflag tocheck-unused-filescommand. - feat: facelift console reporters.
- chore: restrict
analyzerversion to>=2.4.0 <3.1.0. - chore: restrict
analyzer_pluginversion to>=0.8.0 <0.10.0.
4.8.1 #
- feat: add cli options for fatal exit if unused files or l10n are found.
4.8.0 #
- feat: add alphabetical sorting by type for
member-ordering-extendedrule. - feat: add support mixins, extensions and enums for
prefer-match-file-namerule. - feat: add
technical-debtmetric. - fix:
prefer-conditional-expressionsrule breaks code with increment / decrement operators. - chore: restrict
analyzerversion to>=2.4.0 <2.9.0.
4.7.0 #
- feat: add static code diagnostics
avoid-throw-in-catch-block,avoid-unnecessary-type-assertions,avoid-unnecessary-type-casts,avoid-missing-enum-constant-in-map. - feat: improve check unused l10n.
- fix:
no-magic-numbernot working in array of widgets. - chore: activate self implemented rules:
avoid-unnecessary-type-assertions,avoid-unnecessary-type-casts,prefer-first,prefer-last,prefer-match-file-name. - refactor: cleanup anti-patterns, metrics and rules documentation.
4.6.0 #
- feat: CLI now can be compiled to and used as compiled executable.
4.5.0 #
- feat: add static code diagnostics
avoid-nested-conditional-expressions,prefer-correct-identifier-length,prefer-correct-type-name,prefer-first,prefer-last. - feat: introduce summary report.
- fix: rule-specific excludes not working on Windows.
- fix: make check-unused-l10n report class fields.
- chore: changed min
SDKversion to2.14.0. - chore: changed the supported
analyzer_pluginversion to^0.8.0. - chore: deprecate documentation in Github repo.
- chore: restrict
analyzerversion to>=2.4.0 <2.8.0.
4.5.0-dev.3 #
- fix: make check-unused-l10n report class fields.
- chore: restrict
analyzerversion to>=2.4.0 <2.8.0.
4.5.0-dev.2 #
- feat: add static code diagnostics
prefer-correct-type-name,prefer-last,avoid-nested-conditional-expressions. - feat: introduce summary report.
- chore: deprecate documentation in Github repo.
- chore: restrict
analyzerversion to>=2.4.0 <2.7.0.
4.5.0-dev.1 #
- chore: changed min
SDKversion to2.14.0. - chore: restrict
analyzerversion to>=2.4.0 <2.6.0. - chore: changed the supported
analyzer_pluginversion to^0.8.0. - feat: add static code diagnostic
prefer-correct-identifier-length,prefer-first.
4.4.0 #
- feat: introduce
check-unused-l10ncommand. - 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-pointannotation. - fix: compute
Number of Parametersonly for functions and methods. - fix:
Number of Parametersskip copyWith methods. - fix: skip synthetic tokens while compute
Source lines of Code. - fix: update
Maintainability Indexmetric 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 Volumemetric. - Add ability to configure anti-pattern severity.
- Add
--fatal-warnings,--fatal-performance,--fatal-stylecli arguments. - Deprecated GitHub reporter.
4.3.0-dev.1 #
- Add support for global rules-exclude.
- Add
Halstead Volumemetric. - Add ability to configure anti-pattern severity.
- Add
--fatal-warnings,--fatal-performance,--fatal-stylecli arguments.
4.2.1 #
- Fix rule and metrics excludes for monorepos.
- Improve static code diagnostics
avoid-unused-parameters,prefer-match-file-name.
4.2.0 #
- Add static code diagnostics
avoid-ignoring-return-values,prefer-match-file-name,prefer-single-widget-per-file. - Changed the supported
analyzerversion to^2.1.0. - Changed the supported
analyzer_pluginversion to^0.7.0. - Improve cli performance.
4.2.0-dev.3 #
- Changed the supported
analyzerversion to^2.1.0.
4.2.0-dev.2 #
- Changed the supported
analyzerversion to^2.0.0. - Changed the supported
analyzer_pluginversion to^0.7.0.
4.2.0-dev.1 #
- Add static code diagnostics
prefer-match-file-name,prefer-single-widget-per-file.
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 #
- Improve static code diagnostic
always-remove-listener. - Disable metrics report for the plugin.
4.0.0 #
- Add static code diagnostics
always-remove-listener,avoid-wrapping-in-padding,avoid-unnecessary-setstateandprefer-extracting-callbacks. - Improve static code diagnostic
avoid-returning-widgets. - Remove deprecated
Lines of Executable Codemetric, useSource lines of Codeinstead. - Changed the supported
analyzerversion to^1.7.0. - Introduce
analyzeandcheck-unused-filescommands. - Improves plugin stability.
4.0.0-dev.5 #
- Add static code diagnostic
prefer-extracting-callbacks.
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 #
- Add static code diagnostics
always-remove-listener,avoid-wrapping-in-paddingandavoid-unnecessary-setstate. - Improve static code diagnostic
avoid-returning-widgets. - Remove deprecated
Lines of Executable Codemetric, useSource lines of Codeinstead. - Changed the supported
analyzerversion to^1.7.0. - Introduce
analyzeandcheck-unused-filescommands.
3.3.6 #
- Fix analyzer plugin quick fix action performs on wrong file for file with
part of.
3.3.5 #
- Improve static code diagnostic
avoid-unused-parameters.
3.3.4 #
- Fix GitHub reporter
3.3.3 #
- Improve static code diagnostic
member-ordering-extended.
3.3.2 #
- Temporary lock
metapackage upper bound range to1.3.xversion.
3.3.1 #
- Temporary lock
analyzerpackage upper bound range to1.5.xversion.
3.3.0 #
- Improve static code diagnostics
no-equal-arguments,no-magic-numbers,member-ordering-extended.
3.2.3 #
- Fix anti-patterns, metrics and rules documentation url.
3.2.2 #
- Update deprecation version for
Lines of Executable CodeConsoleReporter,MetricsAnalysisRunner,MetricsAnalyzer,MetricsRecordsBuilderandMetricsRecordsStore.
3.2.1 #
- Remove unnecessary scan by
Lines of Executable Code.
3.2.0 #
- Deprecate
ConsoleReporter,MetricsAnalysisRunner,MetricsAnalyzer,MetricsRecordsBuilderandMetricsRecordsStore. - Improve static code diagnostics
avoid-returning-widgets.
3.2.0-dev.1 #
- Add static code diagnostics
avoid-non-null-assertion,avoid-late-keyword. - Improve static code diagnostics
no-equal-arguments,no-magic-number. - Migrate all rule tests to
resolveFile.
3.1.0 #
- Add excludes for a separate rule.
- Add static code diagnostic
avoid-returning-widgets. - Improve static code diagnostic
no-boolean-literal-compare. - Add
Source lines of Codemetric.
3.0.0 #
- Rename all rules config items from snake_case to kebab-case with backward compatibility.
- Rework
JSONreport format. - Stable null safety release.
3.0.0-nullsafety.2 #
- Changed the supported
analyzerversion to^1.4.0. - Changed the supported
analyzer_pluginversion to^0.6.0.
3.0.0-nullsafety.0 #
- Set min
SDKversion to2.12.0. - Changed the supported
analyzerversion to^1.3.0. - Changed the supported
analyzer_pluginversion to^0.5.0. - Remove obsolete rule
prefer-trailing-comma-for-collection,potential-null-dereference. - Rename cli arguments:
ignore-filestoexcludemaximum-nestingtomaximum-nesting-levelnumber-of-argumentstonumber-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
HTMLreporter. - Fixed bug with missing CSS files in
HTMLreport directory.
2.4.0 #
- Add static code diagnostic
avoid-unused-parameters.
2.3.2 #
- Add Gitlab Code Quality support in
Code Climatereport.
2.3.1 #
- Changed the support version range of the
analyzerto>=0.39.3 <0.42.0.
2.3.0 #
- Add
Maximum Nestingmetric.
2.2.0 #
- Add static code diagnostic
prefer-trailing-comma.
2.1.1 #
- Explained usage with Flutter in README.
2.1.0 #
- Add static code diagnostics
no-equal-arguments,potential-null-dereference. - Improve
HTMLreport.
2.0.0 #
- Removed deprecated
AnalysisOptions.fromuseAnalysisOptions.fromMapinstead. - Removed deprecated
Config.linesOfCodeWarningLeveluseConfig.linesOfExecutableCodeWarningLevelinstead. - Removed deprecated
MetricsAnalysisRecorder.startRecordFileandMetricsAnalysisRecorder.endRecordFileuseMetricsRecordsStore.recordFileinstead. - Breaking Change:
MetricsAnalyzer.runAnalysisnow accept array with folder paths. - Add static code anti-patterns
long-parameter-list. - Set min
SDKversion to>=2.8.0.
1.10.0 #
- Add static code diagnostics
no-equal-then-else. - Add static code anti-patterns
long-method.
1.9.0 #
- Add static code diagnostics
provide-correct-intl-args,component-annotation-arguments-ordering.
1.8.1 #
- Fix static code diagnostics
member-orderingandprefer-conditional-expression.
1.8.0 #
- Add static code diagnostics
prefer-conditional-expressions,prefer-on-push-cd-strategy,member-ordering,no-object-declaration. - Improve static code diagnostic
no-magic-number. - Set min
analyzerto0.39.3.
1.7.1 #
- Support
analyzer_pluginversion0.3.0.
1.7.0 #
- Add experimental static code diagnostics
binary-expression-operand-order,prefer-intl-name. - Add
Number of Methodsmetric. - Drop dependency on
resource. - Improve
HTMLreport. - Set min
SDKversion to>=2.6.0.
1.6.0 #
- Add experimental static code diagnostics
prefer-trailing-comma-for-collection,no-magic-number. - Support
Number of Argumentsmetric in analyzer plugin. - Support excluding files from metrics calculation.
1.5.1 #
- Improve code diagnostics
double-literal-format,no-boolean-literal-compare. - Add experimental static code diagnostics
newline-before-return,no-empty-block,avoid-preserve-whitespace-false. - Support
Cyclomatic Complexitymetric in analyzer plugin
1.5.0 #
- Add experimental static code diagnostics
double-literal-format,no-boolean-literal-compare.
1.4.0 #
- Drop dependency on
built_collection. - Add
set-exit-on-violation-levelcli argument.
1.3.1 #
- Fix get arguments count.
1.3.0 #
- Add
Number of Argumentsmetrics.
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 Climatereport.
1.1.1 #
- Added support extension methods.
1.1.0 #
- Added support for
Code Climate.
1.0.0 #
- Initial release.