'How to remove a language/Quality Profile from SonarQube project settings
I can + Add language via the according button but I do not see a way to remove one:
This is for v8.7.1 but the same applies for v6.6. My account is in the sonar-administrators group on both instances (but on the latter I can't even add a language.)
The documentation for Project settings doesn't mention anything about it.
Solution 1:[1]
There’s actually two other ways to “disable” a language:
- Creating another Quality Profile by coping the build-in one (instead of extending it) and disabling all rules.
- Changing the file suffixes associated to a language to something invalid. For instance you could set the file extension for sql to .foobar. Because none of your SQL file will have a .foobar file suffixes, they won’t be analyzed. You can change this settings from your project dashboard > General Settings > Languages > File suffixes.
Source: https://community.sonarsource.com/t/how-to-turn-off-analysis-for-specific-languages/21671
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Philippe GRANET |