Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to exclude classes from Risk Hotspots #664

Open
ricardoboss opened this issue Apr 15, 2024 · 5 comments
Open

Ability to exclude classes from Risk Hotspots #664

ricardoboss opened this issue Apr 15, 2024 · 5 comments

Comments

@ricardoboss
Copy link

Hi there!

I'd like to exclude certain classes/files from Risk Hotspots. Is this possible without disabling the whole Risk Hotspot section?

@danielpalme
Copy link
Owner

@ricardoboss
Filters for the Risk Hotspots via command line arguments are currently not supported.

But you can limit the number of results by selecting an assembly or by entering a search term:
image

@ricardoboss
Copy link
Author

Hi! Thanks for taking the time to respond.

We are using Report Generator as part of our Azure Pipeline and generate a HTML inline report for Azure. Can we pass any arguments to the ADO task to exclude them before generating the report?

@danielpalme
Copy link
Owner

No there is currently no option. The problem with the report within Azure DevOps is, that all JavaScript is blocked and you can't filter dynamically.
You can download the report from the build artifacts and browse it locally (with dynamic filtering).

@ricardoboss
Copy link
Author

Not sure dynamic filtering is what I need. Ideally there'd be a way to permanently exclude certain files/classes from risk hotspots.

@danielpalme
Copy link
Owner

Maybe in a next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants