Commit e63949aa authored by Daniel Hürtgen's avatar Daniel Hürtgen
Browse files

FEATURE: PHP Codesniffer installed

parent 1650834e
......@@ -21,3 +21,8 @@ lint:
<<: *lint
script:
- find . -name \*.php ! -path "./vendor/*" | parallel --gnu php -d display_errors=stderr -l {} > /dev/null \;
lint:coding-guideline:
<<: *lint
script:
- mkdir result
- ./vendor/bin/phpcs -n --report-full=result/phpcs-full.txt --report-diff=result/phpcs-diff.txt --report-summary=result/phpcs-summary.txt
......@@ -28,5 +28,8 @@
"require": {
"php": ">=5.3.0",
"arvenil/ninja-mutex": "^0.6"
},
"require-dev": {
"squizlabs/php_codesniffer": "^2.9|^3.0"
}
}
<?xml version="1.0"?>
<ruleset name="NinjaMutex">
<description>The coding standard for higidi/ninja-mutex.</description>
<arg value="sp"/>
<arg name="colors"/>
<arg name="encoding" value="utf-8" />
<rule ref="PSR2"/>
</ruleset>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment