Change the default parameter rule in SonarQube
I am using sonarqube to check the quality of my code, and I would like to override the rule, but I cannot succeed even following the documentation. The rule I want to change is C # overshoot, which uses the maximumLineLength parameter by default . I would like to change and increase the value of this parameter, but I have not found a way to do this. Any help please?
+3
Tarta
source
to share
1 answer
Try setting the attribute in your sonar-project.properties file. This way the default will remain unchanged, but it will be set to the desired value for each project ...
sonar.maximumLineLength = 300 (or whatever value you need)
Let us know if it worked.
+3
Eedoh
source
to share