diff options
author | Michal Čihař <mcihar@suse.cz> | 2012-04-26 17:38:13 +0400 |
---|---|---|
committer | Michal Čihař <mcihar@suse.cz> | 2012-04-26 17:38:13 +0400 |
commit | 76041ce9ca16ff9a5b3c7fe8e05b462a84912ae1 (patch) | |
tree | 696b56559d2b00e8b70d431c6a933ee4e98e8e51 | |
parent | 941c923c3142c0566f8d3098de783c14723b9ab1 (diff) |
Add custom coding standard for PHPCS
-rw-r--r-- | PMAStandard/ruleset.xml | 13 | ||||
-rw-r--r-- | build.xml | 2 |
2 files changed, 14 insertions, 1 deletions
diff --git a/PMAStandard/ruleset.xml b/PMAStandard/ruleset.xml new file mode 100644 index 0000000000..ccab12b83d --- /dev/null +++ b/PMAStandard/ruleset.xml @@ -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> + @@ -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> |