diff options
author | Yuli Shlosberg <ys9693@att.com> | 2017-11-07 17:14:33 +0200 |
---|---|---|
committer | Michael Lando <ml636r@att.com> | 2017-11-07 15:29:44 +0000 |
commit | 2f95647e5ef79a4552592f64eb98986cd1c53d1b (patch) | |
tree | b4c1306cdd17e59a66ac700c9d93f9f64c2565fb | |
parent | 4393b784fadf9e69c19e11eb8c72316160d6d390 (diff) |
add sonar to distribution client
Change-Id: Id41480b4b3d9ab5d96d478ba122b09fe541b09f5
Issue-Id: SDC-633
Signed-off-by: Yuli Shlosberg <ys9693@att.com>
(cherry picked from commit 5f622b2914cf49f398b5c8e5fb08b3810d3b1f21)
-rw-r--r-- | pom.xml | 18 |
1 files changed, 16 insertions, 2 deletions
@@ -36,14 +36,23 @@ <guava.version>21.0</guava.version> - <sonar.skipDesign>true</sonar.skipDesign> - <sonar.projectBaseDir>${project.basedir}</sonar.projectBaseDir> + <!--<sonar.skipDesign>true</sonar.skipDesign>--> + <!--<sonar.projectBaseDir>${project.basedir}</sonar.projectBaseDir>--> <sonar.jacoco.reportPath>${project.basedir}/target/jacoco.exec</sonar.jacoco.reportPath> <nexus.proxy>https://nexus.onap.org</nexus.proxy> <sitePath>/content/sites/site/org/openecomp/sdc/sdc-distribution-client/${project.version}</sitePath> <snapshots.path>snapshots</snapshots.path> <releases.path>releases</releases.path> <staging.profile.id>176c31dfe190a</staging.profile.id> + <!-- Sonar properties --> + <sonar.sourceEncoding>${project.build.sourceEncoding}</sonar.sourceEncoding> + <sonar.skipDesign>true</sonar.skipDesign> + <sonar.projectBaseDir>${project.basedir}</sonar.projectBaseDir> + <sonar.sources>.</sonar.sources> + <sonar.exclusions>**/scripts/**/*</sonar.exclusions> + <sonar.test.exclusions>**/test/**/*,**/tests/**/*</sonar.test.exclusions> + <sonar.inclusions>app/**/*.js,server-mock/**/*.js,src/**/*.js,src/main/**/*.java</sonar.inclusions> + <sonar.branch>${project.version}</sonar.branch> </properties> <reporting> @@ -161,6 +170,11 @@ </execution> </executions> </plugin> + <plugin> + <groupId>org.sonarsource.scanner.maven</groupId> + <artifactId>sonar-maven-plugin</artifactId> + <version>3.0.2</version> + </plugin> </plugins> </build> |