SonarQube Exclude a directory

前端 未结 13 909
失恋的感觉
失恋的感觉 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:10

    Another configuration option is adding a maven properties sonar.exclusions. Below is a sample pom file with exclusions of static jquery directory and static pdf viewer directory.

    
    4.0.0
    my Artifact
    
    war
    http://maven.apache.org
    
    
    
        4.9
        1.9.5
        1.9.7
        1.5
    
        
        src/main/webapp/static/jquery_ui/*,src/main/webapp/static/pdf-viewer/*,src/main/webapp/static/pdf-viewer/**,src/main/webapp/static/pdf-viewer/**/*
    
    

提交回复
热议问题