Add Sonar properties to pom.xml
[face-privacy-filter.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index 828aeee..4145d64 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -1,8 +1,19 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <!-- This file is used only for Sonar scans -->
     <modelVersion>4.0.0</modelVersion>
     <groupId>org.acumos.face-privacy-filter</groupId>
     <artifactId>face-privacy-filter</artifactId>
     <version>0.3.4</version> <!-- REPEATED IN face_privacy_filter/_version.py MUST MATCH -->
+    <properties>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+        <sonar.sources>.</sonar.sources>
+        <sonar.junit.reportsPath>xunit-results.xml</sonar.junit.reportsPath>
+        <sonar.python.coverage.reportPath>coverage.xml</sonar.python.coverage.reportPath>
+        <sonar.language>py</sonar.language>
+        <sonar.pluginname>python</sonar.pluginname>
+        <sonar.inclusions>**/**.py</sonar.inclusions>
+        <sonar.exclusions>**/tests/**.py,**/test*.py</sonar.exclusions>
+    </properties>
 </project>