danielpalme / ReportGenerator

ReportGenerator converts coverage reports generated by coverlet, OpenCover, dotCover, Visual Studio, NCover, Cobertura, JaCoCo, Clover, gcov or lcov into human readable reports in various formats.
https://reportgenerator.io
Apache License 2.0
2.56k stars 279 forks source link

Risk Hotspots thresholds - what are the default values - and how change them #628

Closed wzaieddev closed 10 months ago

wzaieddev commented 10 months ago

Hi, i'm using ReportGenerator version 5.1.23.0 , i have installed it globaly with this comand dotnet tool install -g dotnet-reportgenerator-globaltool and i generate the report using reportgenerator -reports:"..." etc. and all work fine.

on your documentation i found this Risk Hotspots Based on the metrics you get a list of potential risk hotspots. The following metrics are analyzed if available, the warning thresholds are configurable:

[Cyclomatic complexity] [NPath complexity] [Crap score]

i have two questione: what are the default values ? and how change them?

Best Regards

danielpalme commented 10 months ago

You can find the default values here: https://github.com/danielpalme/ReportGenerator/wiki/Settings#risk-hotspots

The wiki page also explains which command line parameters you have to use, in order to override the default values.

If the metrics are available depends on the coverage tool you are using.