SonarQube Exclude a directory

前端 未结 13 910
失恋的感觉
失恋的感觉 2020-12-23 02:43

I am trying to exclude a directory from being analyzed by Sonar. I have the following properties defined in my sonar-project.properties file:

so         


        
13条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-23 03:06

    This worked for me:

    sonar.exclusions=src/**/wwwroot/**/*.js,src/**/wwwroot/**/*.css
    

    It excludes any .js and .css files under any of the sub directories of a folder "wwwroot" appearing as one of the sub directories of the "src" folder (project root).

提交回复
热议问题