Skip to content

Instantly share code, notes, and snippets.

View barolab's full-sized avatar

barolab barolab

  • Talend
  • Nantes France
View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="Symfony2">
<!-- There should not be any code in the bundle Resources directory. -->
<exclude-pattern>*/Resources/*</exclude-pattern>
<rule ref="Generic.Classes.DuplicateClassName.Found"><severity>0</severity></rule>
<rule ref="Generic.CodeAnalysis.EmptyStatement.NotAllowed"><severity>2</severity></rule>
<rule ref="Generic.CodeAnalysis.EmptyStatement.NotAllowedWarning"><severity>4</severity></rule>
<rule ref="Generic.CodeAnalysis.ForLoopShouldBeWhileLoop.CanSimplify"><severity>4</severity></rule>
<rule ref="Generic.CodeAnalysis.ForLoopWithTestFunctionCall.NotAllowed"><severity>2</severity></rule>
<rule ref="Generic.CodeAnalysis.JumbledIncrementer.Found"><severity>2</severity></rule>
<?xml version="1.0"?>
<ruleset name="PHPMD ACSEO RULESET" xmlns="http://pmd.sf.net/ruleset/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd" xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
<description>Règles PHPMD pour Symfony2</description>
<!-- Rules: see http://phpmd.org/rules/index.html -->
<!-- unusedcode -->
<rule ref="rulesets/unusedcode.xml" >
<priority>2</priority>
</rule>
# Symfony2 <metrics.yml>
metrics:
# paths to explore
path:
directory: src
extensions: php
exclude: Features|Tests|DataFixtures
# report and violations files
logging: