1

I can + Add language via the according button but I do not see a way to remove one:

enter image description here

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.

Gerold Broser
  • 14,080
  • 5
  • 48
  • 107

1 Answers1

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

Philippe GRANET
  • 453
  • 4
  • 7