diff options
author | n-peugnet <n.peugnet@free.fr> | 2020-04-16 11:58:50 +0200 |
---|---|---|
committer | Vincent Peugnet <33429034+vincent-peugnet@users.noreply.github.com> | 2020-04-17 14:40:21 +0200 |
commit | d7e552e223686ee6fabe3a5893af74292f1bf586 (patch) | |
tree | fcd003b973996cffe7a2729bd2937195ae074c94 /phpcs.xml | |
parent | 8ccc4ac00c974ba3659762e6c67f75ed82020e37 (diff) | |
download | wcms-d7e552e223686ee6fabe3a5893af74292f1bf586.tar.gz wcms-d7e552e223686ee6fabe3a5893af74292f1bf586.zip |
tests: add phpcs with minimal PSR12 config
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 |