summaryrefslogtreecommitdiffstats
path: root/phpcs.xml
diff options
context:
space:
mode:
authorRomain d'Alverny <rdalverny@gmail.com>2022-01-11 12:36:17 +0100
committerRomain d'Alverny <rdalverny@gmail.com>2022-01-11 12:36:17 +0100
commit138865bbde25bb6193930c98e30c33913d19e367 (patch)
tree626e8e26dd4f4776ce9f8cd743987f08377127ed /phpcs.xml
parent5f2b708377aec4bc5f1d731dfbb50557552d0482 (diff)
downloadplanet-138865bbde25bb6193930c98e30c33913d19e367.tar
planet-138865bbde25bb6193930c98e30c33913d19e367.tar.gz
planet-138865bbde25bb6193930c98e30c33913d19e367.tar.bz2
planet-138865bbde25bb6193930c98e30c33913d19e367.tar.xz
planet-138865bbde25bb6193930c98e30c33913d19e367.zip
Install code QA helpers, enforce PSR2
Installs phpcs, phpmd, parallel-lint, phpstan.
Diffstat (limited to 'phpcs.xml')
-rw-r--r--phpcs.xml11
1 files changed, 11 insertions, 0 deletions
diff --git a/phpcs.xml b/phpcs.xml
new file mode 100644
index 0000000..e741e42
--- /dev/null
+++ b/phpcs.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0"?>
+<ruleset>
+ <rule ref="PSR1"/>
+ <rule ref="PSR2"/>
+ <file>.</file>
+ <arg value="np"/>
+ <arg name="colors"/>
+ <arg name="extensions" value="php,inc"/>
+ <arg name="encoding" value="utf8"/>
+ <exclude-pattern>vendor/</exclude-pattern>
+</ruleset> \ No newline at end of file