diff options
author | VirtualTam <virtualtam@flibidi.net> | 2018-10-13 00:05:04 +0200 |
---|---|---|
committer | VirtualTam <virtualtam@flibidi.net> | 2018-12-02 22:39:16 +0100 |
commit | 04ec8fedd91642d4c0fc96258868086b8a51c899 (patch) | |
tree | bfb4599425404b8484064fd91b482f1f797f7ce6 /phpcs.xml | |
parent | 37c9c6b4e62ba25f889ebb6486fe5c442acc9095 (diff) | |
download | Shaarli-04ec8fedd91642d4c0fc96258868086b8a51c899.tar.gz Shaarli-04ec8fedd91642d4c0fc96258868086b8a51c899.tar.zst Shaarli-04ec8fedd91642d4c0fc96258868086b8a51c899.zip |
lint: setup PHPCS for PSR-1 and PSR-2
Relates to https://github.com/shaarli/Shaarli/issues/95
See:
- https://github.com/squizlabs/PHP_CodeSniffer
- https://github.com/squizlabs/PHP_CodeSniffer/blob/master/phpcs.xml.dist
- https://www.php-fig.org/psr/psr-1/
- https://www.php-fig.org/psr/psr-2/
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Diffstat (limited to 'phpcs.xml')
-rw-r--r-- | phpcs.xml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/phpcs.xml b/phpcs.xml new file mode 100644 index 00000000..29b95d56 --- /dev/null +++ b/phpcs.xml | |||
@@ -0,0 +1,17 @@ | |||
1 | <?xml version="1.0"?> | ||
2 | <ruleset name="Shaarli"> | ||
3 | <description>The Shaarli coding standards</description> | ||
4 | |||
5 | <file>index.php</file> | ||
6 | <file>application</file> | ||
7 | <file>plugins</file> | ||
8 | <file>tests</file> | ||
9 | |||
10 | <exclude-pattern>*/*.css</exclude-pattern> | ||
11 | <exclude-pattern>*/*.js</exclude-pattern> | ||
12 | |||
13 | <arg name="colors"/> | ||
14 | |||
15 | <rule ref="PSR1"/> | ||
16 | <rule ref="PSR2"/> | ||
17 | </ruleset> | ||