Commit 4e2a0488 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Utilise la configuration phpcs et phpmd par défaut.

parent 11956b06
......@@ -20,7 +20,7 @@ phploc:
lint:
<<: *defaults
script: parallel-lint -j $(nproc) --exclude vendor .
script: parallel-lint -j $(nproc) --exclude vendor .
phpcs:
<<: *defaults
......@@ -33,5 +33,5 @@ phpcpd:
phpmd:
<<: *defaults
script: phpmd . text ./phpmd.xml --suffixes=php
script: phpmd . text /rules/phpmd.xml --suffixes=php
allow_failure: true
<?xml version="1.0"?>
<ruleset name="Irstea" namespace="Irstea\Standard">
<description>Coding standard of Irstea, pôle informatique scientifique</description>
<file>.</file>
<arg name="extensions" value="php"/>
<arg name="encoding" value="utf-8"/>
<arg value="sp"/>
<rule ref="PSR2"/>
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="140"/>
</properties>
</rule>
<exclude-pattern>vendor/</exclude-pattern>
<exclude-pattern>node_modules/</exclude-pattern>
<exclude-pattern>cache/</exclude-pattern>
</ruleset>
<?xml version="1.0"?>
<ruleset name="Irstea PHPMD 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">
<description>Irstea ruleset</description>
<rule ref="rulesets/unusedcode.xml"/>
<rule ref="rulesets/codesize.xml"/>
<rule ref="rulesets/design.xml"/>
<rule ref="rulesets/controversial.xml"/>
<rule ref="rulesets/cleancode.xml/StaticAccess">
<properties>
<property name="exceptions" value="\DateTime,\DateTimeZone,\Doctrine\DBAL\Types\ConversionException"/>
</properties>
</rule>
<rule ref="rulesets/naming.xml">
<exclude name="ShortVariable"/>
</rule>
<rule ref="rulesets/naming.xml/ShortVariable">
<properties>
<property name="exceptions" value="em,tz,i,j,id,x,y,dn,fh,ex"/>
</properties>
</rule>
<exclude-pattern>vendor/</exclude-pattern>
<exclude-pattern>node_modules/</exclude-pattern>
<exclude-pattern>.*/cache/</exclude-pattern>
</ruleset>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment