aboutsummaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorYuli Shlosberg <ys9693@att.com>2017-11-07 16:36:38 +0200
committerMichael Lando <ml636r@att.com>2017-11-07 15:27:55 +0000
commitb01816e17b689d60c5b0f69c51ea20806c882ce4 (patch)
tree1a320ff0655e057a4377a35ba16abb047a7ed8b0 /pom.xml
parente83125d8199c6789adf5da9ec48686be65fd51b9 (diff)
add sonar to sdc tosca
Change-Id: I26c1e512da88b06fe5d81cb7be2c5d65682c29d8 Issue-Id: SDC-631 Signed-off-by: Yuli Shlosberg <ys9693@att.com> (cherry picked from commit 83879d851b121cea1cfa7aff45fd85efdf9db04d)
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml19
1 files changed, 17 insertions, 2 deletions
diff --git a/pom.xml b/pom.xml
index 120e927..0c8705d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -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>
@@ -275,6 +284,12 @@
</includes>
</configuration>
</plugin>
+
+ <plugin>
+ <groupId>org.sonarsource.scanner.maven</groupId>
+ <artifactId>sonar-maven-plugin</artifactId>
+ <version>3.0.2</version>
+ </plugin>
</plugins>
</build>