diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2020-04-17 14:40:41 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2020-04-17 14:40:41 +0200 |
commit | 74e2b3fdd66bfbe99bae771fa3a0b6c427fc0f86 (patch) | |
tree | fc78d1ad2fb6104337f6a93c7c4068e5db701a6e /phpcs.xml | |
parent | 37381ba23e5e9356c580f00dcf817bed5d660d14 (diff) | |
parent | d7e552e223686ee6fabe3a5893af74292f1bf586 (diff) | |
download | wcms-74e2b3fdd66bfbe99bae771fa3a0b6c427fc0f86.tar.gz wcms-74e2b3fdd66bfbe99bae771fa3a0b6c427fc0f86.zip |
Merge branch 'master' of https://github.com/vincent-peugnet/wcms
Diffstat (limited to 'phpcs.xml')
-rw-r--r-- | phpcs.xml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/phpcs.xml b/phpcs.xml new file mode 100644 index 0000000..3bed678 --- /dev/null +++ b/phpcs.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" ?> +<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + name="WRuleset" + xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd"> + <description>The coding standard for Wcms.</description> + + <!-- included files --> + <file>index.php</file> + <file>app</file> + <exclude-pattern>app/view/templates/*\.php$</exclude-pattern> + + <!-- Add some default command line args (see help) --> + <arg name="basepath" value="."/> + <arg name="colors" /> + <arg name="parallel" value="75" /> + <arg value="p" /> + + <!-- Include the whole PSR12 standard --> + <rule ref="PSR12"></rule> + + <!-- Add some rules --> + <rule ref="Generic.Metrics.NestingLevel"></rule> +</ruleset>
\ No newline at end of file |