1. Add below entry in pom.xml
<properties>
<sonar.projectName>${project.groupId}:${project.artifactId}</sonar.projectName>
<sonar.sources>app,src/main</sonar.sources>
<sonar.exclusions>app/node_modules/**, src/main/webapp/**, app/dist/**</sonar.exclusions>
<sonar.tests>src/test</sonar.tests>
</properties>
- Go to sonarQube, select the project you need.
- Go to administration,
- Click on general settings,
- Click on analysis scope
- click on files, add files in textbox of Source file exclusions.
No comments:
Post a Comment