Skip to content

Instantly share code, notes, and snippets.

@delr3ves
Created November 18, 2012 13:08
Show Gist options
  • Save delr3ves/4105173 to your computer and use it in GitHub Desktop.
Save delr3ves/4105173 to your computer and use it in GitHub Desktop.
Configuración de Sonar para proyectos Symfony 2.1
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>Your project Group</groupId>
<name>Your project Name</name>
<artifactId>The project Id</artifactId>
<version>The version</version>
<build>
<sourceDirectory>${basedir}/src</sourceDirectory>
<testSourceDirectory>${basedir}/src/*/Tests</testSourceDirectory>
</build>
<profiles>
<profile>
<id>PHP</id>
<properties>
<sonar.language>php</sonar.language>
<sonar.phpUnit.configuration>${basedir}/app/phpunit.xml.dist</sonar.phpUnit.configuration>
<sonar.phpUnit.analyze.test.directory>true</sonar.phpUnit.analyze.test.directory>
<sonar.dynamicAnalysis>true</sonar.dynamicAnalysis>
<sonar.phpPmd.shouldRun>true</sonar.phpPmd.shouldRun>
<sonar.phpCodesniffer.shouldRun>true</sonar.phpCodesniffer.shouldRun>
<sonar.phpDepend.shouldRun>true</sonar.phpDepend.shouldRun>
<sonar.phpUnit.coverage.shouldRun>true</sonar.phpUnit.coverage.shouldRun>
<sonar.phpUnit.shouldRun>true</sonar.phpUnit.shouldRun>
<sonar.phpcpd.shouldRun>true</sonar.phpcpd.shouldRun>
<sonar.phpcpd.excludes>${basedir}/src/*/*/Resources/*, ${basedir}/src/*/*/Tests/*</sonar.phpcpd.excludes>
<sonar.phpPmd.analyzeOnly>false</sonar.phpPmd.analyzeOnly>
<sonar.branch>PHP</sonar.branch>
<sonar.exclusions>${basedir}/src/*/*/Resources/*, ${basedir}/vendor/*</sonar.exclusions>
</properties>
</profile>
</profiles>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment