diff options
author | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2019-01-08 21:32:02 -0200 |
---|---|---|
committer | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2019-01-16 17:21:25 -0200 |
commit | 86c5baebda24c1721fb6881df8671a3c7df60e8b (patch) | |
tree | 0a76d58ea229d1008e169b1c5b25ce90dde91808 /phpcs.xml.dist | |
parent | 28427543566b6dd32fe44db704ea41368ba55c0e (diff) | |
download | sql-parser-86c5baebda24c1721fb6881df8671a3c7df60e8b.zip sql-parser-86c5baebda24c1721fb6881df8671a3c7df60e8b.tar.gz sql-parser-86c5baebda24c1721fb6881df8671a3c7df60e8b.tar.bz2 |
Apply phpmyadmin/coding-standard
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to 'phpcs.xml.dist')
-rw-r--r-- | phpcs.xml.dist | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/phpcs.xml.dist b/phpcs.xml.dist new file mode 100644 index 0000000..81b5c0c --- /dev/null +++ b/phpcs.xml.dist @@ -0,0 +1,39 @@ +<?xml version="1.0"?> +<ruleset + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + name="phpMyAdmin" + xsi:noNamespaceSchemaLocation="./vendor/squizlabs/php_codesniffer/phpcs.xsd" +> + <rule ref="./vendor/phpmyadmin/coding-standard/PhpMyAdmin/ruleset.xml"> + <exclude name="PEAR.Commenting.FileComment"/> + <exclude name="PEAR.Commenting.ClassComment"/> + <exclude name="PEAR.Commenting.FunctionComment"/> + </rule> + + <rule ref="Squiz.Arrays.ArrayDeclaration.IndexNoNewline"> + <exclude-pattern>*/src/Contexts/*</exclude-pattern> + </rule> + + <rule ref="Generic.Files.LineLength.TooLong"> + <severity>4</severity> + </rule> + <rule ref="Generic.Metrics.NestingLevel.TooHigh"> + <severity>4</severity> + </rule> + <rule ref="PSR1.Files.SideEffects.FoundWithSymbols"> + <severity>4</severity> + </rule> + <rule ref="Squiz.NamingConventions.ValidVariableName"> + <severity>4</severity> + </rule> + + <arg value="sp"/> + <arg name="colors"/> + <arg name="extensions" value="php"/> + + <exclude-pattern>*/tools/sami-config.php</exclude-pattern> + + <file>src</file> + <file>tests</file> + <file>tools</file> +</ruleset> |