Integrate optf/has with Sonar 99/33699/1
authorDileep Ranganathan <dileep.ranganathan@intel.com>
Thu, 1 Mar 2018 14:20:22 +0000 (06:20 -0800)
committerDileep Ranganathan <dileep.ranganathan@intel.com>
Thu, 1 Mar 2018 18:41:33 +0000 (10:41 -0800)
Added sonar properties for python related config
Added custom inclusion/exclusion patterns which could be leveraged

Change-Id: I3992a9120a30555fc933c1b052984367af69e4da
Issue-ID: OPTFRA-101
Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com>
conductor/pom.xml
pom.xml

index f12574a..db0f047 100644 (file)
@@ -22,7 +22,7 @@
     <parent>
         <groupId>org.onap.optf.has</groupId>
         <version>1.1.0-SNAPSHOT</version>
-        <artifactId>optf-has-root</artifactId>
+        <artifactId>optf-has</artifactId>
     </parent>
 
     <groupId>org.onap.optf.has</groupId>
diff --git a/pom.xml b/pom.xml
index 37a62d3..505fac8 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -26,7 +26,7 @@
     </parent>
 
     <groupId>org.onap.optf.has</groupId>
-    <artifactId>optf-has-root</artifactId>
+    <artifactId>optf-has</artifactId>
 
     <name>optf-has</name>
     <version>1.1.0-SNAPSHOT</version>
         <!--<module>docs</module>-->
     </modules>
 
+    <properties>
+        <sonar.sourceEncoding>UTF-8</sonar.sourceEncoding>
+        <sonar.sources>conductor/conductor</sonar.sources>
+        <sonar.tests>conductor/conductor/tests</sonar.tests>
+        <sonar.python.coverage.reportPath>conductor/cover/coverage.xml</sonar.python.coverage.reportPath>
+        <sonar.language>py</sonar.language>
+        <sonar.pluginname>python</sonar.pluginname>
+        <sonar.inclusions>**/**.py</sonar.inclusions>
+        <sonar.exclusions>**/tests/**,setup.py,**/lib/**</sonar.exclusions>
+        <sonar.test.inclusions>**/tests/**.py</sonar.test.inclusions>
+        <sonar.test.exclusions>**/**.py,setup.py,**/lib/**</sonar.test.exclusions>
+    </properties>
+
     <build>
         <plugins>
             <plugin>