MetricsDelta 0.2.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package MetricsDelta --version 0.2.0                
NuGet\Install-Package MetricsDelta -Version 0.2.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MetricsDelta" Version="0.2.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MetricsDelta --version 0.2.0                
#r "nuget: MetricsDelta, 0.2.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MetricsDelta as a Cake Addin
#addin nuget:?package=MetricsDelta&version=0.2.0

// Install MetricsDelta as a Cake Tool
#tool nuget:?package=MetricsDelta&version=0.2.0                

MetricsDelta

This little CLI (Command-line interface) tool is capable of comparing two code metric reports and generates single report that contains delta (difference) changes as well as gradings on metrics. Metrics are graded according to configurable thresholds. This is useful in monitoring changes in quality/maintainability of code. MetricsDelta can be used as part of pipeline quality checks.

More information about code metrics report and how to generate it can be found here:

https://learn.microsoft.com/en-us/visualstudio/code-quality/how-to-generate-code-metrics-data

Also here is some additional reading on how to interpret code metrics report values:

https://learn.microsoft.com/en-us/visualstudio/code-quality/code-metrics-values

Installation

From Github

Manually download latest release and unpack it to desired location.

From nuget.org

Use following command:

nuget install MetricsDelta

Usage

MetricsDelta.exe --previousMetricsFilePath <path> --currentMetricsFilePath <path> --reportFilePath <path> --settingsFilePath <path>

Arguments

  • --previousMetricsFilePath - (Mandatory) Path to code metrics report which was generated before current code metrics report
  • --currentMetricsFilePath - (Mandatory) Path to current (later than previous) code metrics report
  • --reportFilePath - (Mandatory) Path to output code metrics report which will contain additional metrics delta and grading information
  • --settingsFilePath - (Optional) Path to JSON settings file which could contain various overrides i.e. specific thresholds or logging options

Known limitations

  • Generated output report is stripped from any Namespace nodes which were part of Assembly nodes. This limitation will be removed in upcomming updates.

Development information

Source code language

C#

Platform

.NET 7 for now

DevEnv

MSVS 2022 (Community or compatible)

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.3.1 149 9/18/2024
0.3.0 111 8/1/2024
0.2.0 508 9/1/2023
0.1.0 503 8/28/2023