Skip to content

Commit

Permalink
Add phpcs.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
Qcode committed Jul 19, 2017
1 parent 692dcaf commit 6c4828a
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 @@ -78,6 +78,7 @@
"silverorange/nate_go_search": "Product search indexing."
},
"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="Store">
<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>./Store</file>

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

0 comments on commit 6c4828a

Please sign in to comment.