sonarcloud dont check duplication javascript

578 Views Asked by At

I've been looking for hours how to disable sonarcloud checking on duplicate lines/blocks in my sonar-project.properties file, and I still can't make it, it's driving me crazy.

I've tried sonar.cpd.exclusions=**/*.js sonar.cpd.exclusions=**/*

But it's not working.

How to achieve this simple task ?

Thanks a lot for your help !

1

There are 1 best solutions below

1
On

On Sonarqube server, It is written in General Settings > Analysis Scope that

one asterisk * Matches zero or more characters and two asterisks ** matches one or more directories

since you need to exclude all files in the project from duplication detection, I think the below pattern will do the job

sonar.cpd.exclusions=**/**