Skip to content

Commit

Permalink
Merge pull request #27 from Qcode/add-phpcs
Browse files Browse the repository at this point in the history
Add phpcs.xml
  • Loading branch information
gauthierm committed Jul 19, 2017
2 parents df2a759 + 5112ae2 commit cf0a56f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"ext-memcached": "Allows caching resource definition YAML files between requests."
},
"scripts": {
"lint": "./vendor/bin/phpcs",
"post-install-cmd": "./vendor/bin/phpcs --config-set installed_paths vendor/silverorange/coding-standard/src",
"post-update-cmd": "./vendor/bin/phpcs --config-set installed_paths vendor/silverorange/coding-standard/src"
},
Expand Down
13 changes: 13 additions & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<ruleset name="Concentrate">
<arg name="colors" />
<arg name="tab-width" value="4" />
<arg name="extensions" value="php" />
<arg name="encoding" value="utf-8" />
<arg name="warning-severity" value="0" />
<arg value="p" /><!-- show progress -->

<file>./Concentrate</file>

<rule ref="PEAR" />
</ruleset>

0 comments on commit cf0a56f

Please sign in to comment.