Skip to content

Upgrading dart_code_metrics 2 to 3

Unknown2.5.0 → 3.3.6Deprecated1Changed5Fixed3

Fetching 17 releases from GitHub…9 / 17
UnknownUpgrade verdict

DepDelta is still reading the notes for 8 of 17 releases, so breaking changes can't be ruled out yet.

  • DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
  • This page updates as the notes come in.
1 item needs code or config changes

Dart SDK requirement changed in 3.0.0-nullsafety.0: >=2.8.0 <3.0.0 → >=2.12.0 <3.0.0.

Deprecated1
Updates the deprecation version for Lines of Executable Code, ConsoleReporter, MetricsAnalysisRunner, MetricsAnalyzer, MetricsRecordsBuilder and MetricsRecordsStore.
Lines of Executable CodeConsoleReporterMetricsAnalysisRunnerMetricsAnalyzerMetricsRecordsBuilderMetricsRecordsStore

Generated by DepDelta from published Dart source. Not mixed with prose notes.

  • added: class AnalysisOptions
  • added: ctor AnalysisOptions(this.options)
  • added: field AnalysisOptions.options: final Map<String, Object>
  • added: function analysisOptionsFromFile(File? options): Future<AnalysisOptions>
  • added: method AnalysisOptions.readIterableOfString(Iterable<String> pathSegments): Iterable<String>
  • added: method AnalysisOptions.readMap(Iterable<String> pathSegments): Map<String, Object>
  • added: method AnalysisOptions.readMapOfMap(Iterable<String> pathSegments): Map<String, Map<String, Object>>
  • added: variable analysisOptionsFileName: const String
  • added: class MetricValueLevel implements Comparable<MetricValueLevel>
  • added: function metrics({ required Map<String, Object> config, EntityType? measuredType, }): Iterable<Metric>
  • added: method MetricValueLevel.compareTo(MetricValueLevel other): int
  • added: method MetricValueLevel.operator <(MetricValueLevel other): bool
  • added: method MetricValueLevel.operator <=(MetricValueLevel other): bool
  • added: method MetricValueLevel.operator >(MetricValueLevel other): bool
  • added: method MetricValueLevel.operator >=(MetricValueLevel other): bool
  • added: method MetricValueLevel.toString(): String
  • added: static field MetricValueLevel.alarm: const
  • added: static field MetricValueLevel.none: const
  • added: static field MetricValueLevel.noted: const
  • added: static field MetricValueLevel.values: const
  • added: static field MetricValueLevel.warning: const
  • added: static method MetricValueLevel.fromString(String? level): MetricValueLevel?
  • added: variable Object>)>: final
  • removed: class AnalysisOptions extends Config
  • removed: ctor AnalysisOptions({ @required Iterable<String> excludePatterns, @required Iterable<String> metricsExcludePatterns, @required Map<String, Object> metrics, @required this.metricsConfig, @required this.rules, @required this.antiPatterns, })
  • removed: ctor AnalysisOptions.fromMap(Map<String, Object> map)
  • removed: field AnalysisOptions.antiPatterns: final Map<String, Map<String, Object>>
  • removed: field AnalysisOptions.metricsConfig: final metrics.Config
  • removed: field AnalysisOptions.rules: final Map<String, Map<String, Object>>
  • removed: field Config.cyclomaticComplexityWarningLevel: final int
  • removed: field Config.linesOfExecutableCodeWarningLevel: final int
  • removed: field Config.maximumNestingWarningLevel: final int
  • removed: field Config.numberOfArgumentsWarningLevel: final int
  • removed: field Config.numberOfMethodsWarningLevel: final int
  • removed: field Config.weightOfClassWarningLevel: final double
  • removed: function analysisOptionsFromFile(File options): Future<AnalysisOptions>
  • removed: method MetricsRecordsBuilder.recordFunction( ScopedFunctionDeclaration declaration, FunctionRecord record): void
  • removed: variable analysisOptionsFileName: const String
  • removed: variable cyclomaticComplexityDefaultWarningLevel: const
  • removed: variable cyclomaticComplexityKey: const
  • removed: variable maximumNestingDefaultWarningLevel: const
  • removed: variable maximumNestingKey: const
  • removed: variable numberOfArgumentsDefaultWarningLevel: const
  • removed: variable numberOfArgumentsKey: const
  • removed: variable numberOfMethodsDefaultWarningLevel: const
  • removed: variable numberOfMethodsKey: const
  • removed: variable weightOfClassDefaultWarningLevel: const
  • removed: variable weightOfClassKey: const
  • changed: ctor Config({ this.cyclomaticComplexityWarningLevel = …, this.linesOfExecutableCodeWarningLevel = …, this.numberOfArgumentsWarningLevel = …, this.numberOfMethodsWarningLevel = …, this.maximumNestingWarningLevel = …, this.weightOfClassWarningLevel = …, }) → ctor Config({ required this.excludePatterns, required this.excludeForMetricsPatterns, required this.metrics, required this.rules, required this.antiPatterns, })
  • changed: ctor MetricsAnalysisRunner( this._analyzer, this._store, this._folders, this._rootFolder) → ctor MetricsAnalysisRunner( this._analyzer, this._store, this._folders, this._rootFolder, )
  • changed: ctor MetricsAnalyzer( this._store, { metrics.AnalysisOptions options, Iterable<String> additionalExcludes = …, }) → ctor MetricsAnalyzer(this._store, Config config)
  • changed: method MetricsAnalysisRunner.results(): Iterable<FileRecord> → method MetricsAnalysisRunner.results(): Iterable<FileReport>
  • changed: method MetricsRecordsStore.recordFile(String filePath, String rootDirectory, void Function(MetricsRecordsBuilder) f): MetricsRecordsStore → method MetricsRecordsStore.recordFile( String filePath, String rootDirectory, void Function(MetricsRecordsBuilder) f, ): MetricsRecordsStore
  • changed: method MetricsRecordsStore.records(): Iterable<FileRecord> → method MetricsRecordsStore.records(): Iterable<FileReport>
  • added: ctor Config.fromAnalysisOptions(AnalysisOptions options)
  • added: field Config.antiPatterns: final Map<String, Map<String, Object>>
  • added: field Config.excludeForMetricsPatterns: final Iterable<String>
  • added: field Config.excludePatterns: final Iterable<String>
  • added: field Config.metrics: final Map<String, Object>
  • added: field Config.rules: final Map<String, Map<String, Object>>
  • added: method Config.merge(Config overrides): Config
  • added: method MetricsRecordsBuilder.recordFunctionData(ScopedFunctionDeclaration declaration, Report record): void
  • removed: class CodeClimateReporter implements Reporter
  • removed: class GitHubReporter implements Reporter
  • removed: class HtmlReporter implements Reporter
  • removed: class JsonReporter implements Reporter
  • removed: class ReportTableRecord
  • removed: class Reporter: abstract
  • removed: ctor CodeClimateReporter({ @required this.reportConfig, this.gitlabCompatible = …, })
  • removed: ctor HtmlReporter({@required this.reportConfig, @required this.reportFolder})
  • removed: ctor JsonReporter({@required this.reportConfig})
  • removed: ctor ReportTableRecord({ @required this.title, @required this.link, @required this.report, })
  • removed: field CodeClimateReporter.gitlabCompatible: final bool
  • removed: field CodeClimateReporter.reportConfig: final Config
  • removed: field ConsoleReporter.reportConfig: final Config
  • removed: field HtmlReporter.reportConfig: final Config
  • removed: field HtmlReporter.reportFolder: final String
  • removed: field JsonReporter.reportConfig: final Config
  • removed: field ReportTableRecord.link: final String
  • removed: field ReportTableRecord.report: final FileReport
  • removed: field ReportTableRecord.title: final String
  • removed: method CodeClimateReporter.report(Iterable<FileRecord> records): Future<Iterable<String>>
  • removed: method GitHubReporter.report(Iterable<FileRecord> records): Future<Iterable<String>>
  • removed: method HtmlReporter.report(Iterable<FileRecord> records): Future<Iterable<String>>
  • removed: method JsonReporter.report(Iterable<FileRecord> records): Future<Iterable<String>>
  • removed: method Reporter.report(Iterable<FileRecord> records): Future<Iterable<String>>
  • changed: ctor ConsoleReporter({@required this.reportConfig, this.reportAll = …}) → ctor ConsoleReporter(this._output, {this.reportAll = …})
  • changed: method ConsoleReporter.report(Iterable<FileRecord> records): Future<Iterable<String>> → method ConsoleReporter.report(Iterable<FileReport> records): Future<void>
  • added: function reporter({ required String name, required IOSink output, required Config config, required String reportFolder, }): Reporter?
  • added: variable reportFolder)>: final