Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Čihař <mcihar@suse.cz>2012-04-26 17:38:13 +0400
committerMichal Čihař <mcihar@suse.cz>2012-04-26 17:38:13 +0400
commit76041ce9ca16ff9a5b3c7fe8e05b462a84912ae1 (patch)
tree696b56559d2b00e8b70d431c6a933ee4e98e8e51
parent941c923c3142c0566f8d3098de783c14723b9ab1 (diff)
Add custom coding standard for PHPCS
-rw-r--r--PMAStandard/ruleset.xml13
-rw-r--r--build.xml2
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>
+
diff --git a/build.xml b/build.xml
index d898a83f44..eff834f884 100644
--- a/build.xml
+++ b/build.xml
@@ -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>