question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Risk Hotspots] [Feature Request] Option to remove Risk Hotspots section (in appsettings.json)

See original GitHub issue

Hi Daniel,

Currently, if none of the CyclomaticComplexity, NPathComplexity and CrapScore are in the OpenCover data, the report generator will display an empty Risk Hotspots section.

Do you think it would make sense to add an option to hide the Risk Hotspots section? This will allow the ReportGenerator to be used purely as a Code Coverage report tool rather than needing to include Static Analysis aspects to it. Something like settings:includeRiskHotspots=false

Thank you, your time and effort to develop ReportGenerator are really appreciated

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
nikosatworkcommented, May 23, 2019

Awesome! Thanks Daniel!

0reactions
danielpalmecommented, May 22, 2019

I made some changes:

  1. I moved the new option to the Settings class
  2. I added a new overload of the GenerateReport method, which lets you pass in a Settings class instance

Sample:

IReportConfiguration reportConfiguration = ...;

new Generator().GenerateReport(
    reportConfiguration,
    new Settings() { DisableRiskHotspots = true },
    new RiskHotspotsAnalysisThresholds());

New release will be available within the next hour.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No data on the Risk Hotspots tab. · Issue #160
Setting thresholds in appsettings.json is not suppoted. Instead you can set these values in vs options. When there are no risk hotspots there...
Read more >
Net Core appsettings.json best practices - override dev ...
I've gotten to the habit storing my configuration in Azure under an AzureAppConfig and/or an AzureKeyVault. It gives me a central location to ......
Read more >
Safe storage of app secrets in development in ASP.NET Core
Learn how to store and retrieve sensitive information during the development of an ASP.NET Core app.
Read more >
Handling Android App Links
Web links which are grouped by path; Links which have custom schemes. Each one of these sections displays the deep link status and...
Read more >
Security hotspot - SonarQube Docs
A security hotspot highlights a security-sensitive piece of code that the developer needs to review. Upon review, you'll either find there is no...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found