Update sonar settings 55/97355/1
authorxuegao <xg353y@intl.att.com>
Fri, 18 Oct 2019 06:53:19 +0000 (08:53 +0200)
committerxuegao <xg353y@intl.att.com>
Fri, 18 Oct 2019 06:53:19 +0000 (08:53 +0200)
Remove the tests and config files out of the sonar code coverage
calculation.

Issue-ID: CLAMP-512
Change-Id: I86afcd8c307a11b8f5cceb955c40c32cd7129781
Signed-off-by: xuegao <xg353y@intl.att.com>
pom.xml

diff --git a/pom.xml b/pom.xml
index c0f31e9..c327be1 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -97,7 +97,7 @@
                <sonar.javascript.lcov.reportPaths>${project.build.directory}/${ui.react.src}/coverage/lcov.info</sonar.javascript.lcov.reportPaths>
 
                <sonar.exclusions>src/main/resources/**</sonar.exclusions>
-
+               <sonar.coverage.exclusions>src/main/resources/**,target/ui-react/src/**/*.test.js,target/ui-react/src/setupTests.js,src/main/docker/*.py</sonar.coverage.exclusions>
                <docker.push.registry>localhost:5000</docker.push.registry>
                <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
                <docker.skip.build>true</docker.skip.build>