Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Cannot change threshold values in Sonar rules #136

Open
vsigler opened this issue Jan 12, 2021 · 2 comments
Open

Cannot change threshold values in Sonar rules #136

vsigler opened this issue Jan 12, 2021 · 2 comments
Labels

Comments

@vsigler
Copy link

vsigler commented Jan 12, 2021

This might be a bug or it might be an unimplemented feature. However, I cannot seem to be able to configure detekt rules.

Example:
https://detekt.github.io/detekt/complexity.html#toomanyfunctions
This rule has multiple thesholds to configure. However it cannot be done when I add the rule to a quality profile.

Similar rules for java have a "change" option that allows me to tune the thresholds.

@arturbosch
Copy link
Member

Hi @vsigler ,
indeed we do not support this feature.
detekt rules are configured via our yaml format - https://detekt.github.io/detekt/configurations.html
You can reference the yaml config file in your project detekt settings.

@vsigler
Copy link
Author

vsigler commented Jan 18, 2021

Problem is that while I have admin access to Sonar, I do not have direct filesystem access to the server, so this makes things a bit cumbersome. Per project settings in individual repositories are not an option either. Would it be at least somehow possible to add a way to edit the default settings in a text area in the plugin?

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

No branches or pull requests

2 participants