Excluding Loop components from SONAR
Issue-ID: POLICY-3351
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
Change-Id: Ia31841938be19f356e4efdb48c7be6186dcff540
diff --git a/gui-clamp/pom.xml b/gui-clamp/pom.xml
index 9bb1b3a..3658893 100644
--- a/gui-clamp/pom.xml
+++ b/gui-clamp/pom.xml
@@ -35,7 +35,7 @@
<npm.publish.url>https://nexus3.onap.org/repository/npm.snapshot/</npm.publish.url>
<sonar.nodejs.executable>${project.build.directory}/ui-react/node/node</sonar.nodejs.executable>
<sonar.sources>${project.basedir}/ui-react/src</sonar.sources>
- <sonar.exclusions>**/*.test.js</sonar.exclusions>
+ <sonar.exclusions>**/*.test.js, **/*/*Loop*.js, **/loop_viewer/**/*</sonar.exclusions>
</properties>
<build>
<plugins>
diff --git a/gui-clamp/ui-react/package.json b/gui-clamp/ui-react/package.json
index 3a8ee27..c699c19 100644
--- a/gui-clamp/ui-react/package.json
+++ b/gui-clamp/ui-react/package.json
@@ -71,7 +71,8 @@
"collectCoverage": true,
"coverageDirectory": "${project.build.directory}/code-coverage",
"collectCoverageFrom": [
- "**/*.{js,jsx}"
+ "**/*.{js,jsx}",
+ "!./src/setupTests.js"
],
"testResultsProcessor": "jest-sonar-reporter",
"rootDir": "${project.build.directory}/${ui.react.src}",