Add custom coding standard for PHPCS

This commit is contained in:
Michal Čihař 2012-04-26 15:38:13 +02:00
parent 941c923c31
commit 76041ce9ca
2 changed files with 14 additions and 1 deletions

13
PMAStandard/ruleset.xml Normal file
View File

@ -0,0 +1,13 @@
<?xml version="1.0"?>
<ruleset name="phpMyAdmin Standard">
<!-- http://pear.php.net/manual/en/package.php.php-codesniffer.annotated-ruleset.php -->
<description>phpMyAdmin custom coding standard</description>
<rule ref="PEAR">
<exclude name="PEAR.Commenting.FileComment" />
<exclude name="PEAR.Commenting.ClassComment" />
<exclude name="PEAR.Commenting.FunctionComment" />
<exclude name="PEAR.Commenting.InlineComment" />
</rule>
</ruleset>

View File

@ -73,7 +73,7 @@
--ignore=*/php-gettext/*,*/tcpdf/*,*/canvg/*,*/codemirror/*,*/highcharts/*,*/openlayers/*,*/jquery/*,*/build/*,*/bfShapeFiles/*
--report=checkstyle
--report-file=${basedir}/build/logs/checkstyle.xml
--standard=PEAR
--standard=PMAStandard
${source}" />
</exec>
</target>