diff options
author | Yuli Shlosberg <ys9693@att.com> | 2017-11-07 16:36:38 +0200 |
---|---|---|
committer | Yuli Shlosberg <ys9693@att.com> | 2017-11-07 16:39:45 +0200 |
commit | 83879d851b121cea1cfa7aff45fd85efdf9db04d (patch) | |
tree | 122b5645589a25d85242f390d54e9c3819547d9b | |
parent | 389c8ca07065e4e66c70ca33b10caf80ba608895 (diff) |
add sonar to sdc toscarelease-1.1.0
Change-Id: I26c1e512da88b06fe5d81cb7be2c5d65682c29d8
Issue-Id: SDC-631
Signed-off-by: Yuli Shlosberg <ys9693@att.com>
-rw-r--r-- | pom.xml | 19 |
1 files changed, 17 insertions, 2 deletions
@@ -23,14 +23,23 @@ <!-- Global project version -->
<!-- Dependencies projects 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-tosca/${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>
@@ -259,6 +268,12 @@ </includes>
</configuration>
</plugin>
+
+ <plugin>
+ <groupId>org.sonarsource.scanner.maven</groupId>
+ <artifactId>sonar-maven-plugin</artifactId>
+ <version>3.0.2</version>
+ </plugin>
</plugins>
</build>
|