ssharma
ssharma

Reputation: 541

Sonarqube file exclusion rule not working

I have written Sonarqube file exclusion rules. But it doesn't seem working. The intention is to exclude all files contain "jquery" in the file name in one or more directories inside "static". below is the rule

/static/**/*jquery*.js

is the above rule written correctly? is it case sensitive?

Upvotes: 0

Views: 1137

Answers (1)

G. Ann - SonarSource Team
G. Ann - SonarSource Team

Reputation: 22794

The root of your path likely isn't "static", so instead of

/static/**/*jquery*.js

Try

**/static/**/*jquery*.js

Upvotes: 3

Related Questions