Skip to content
This repository has been archived by the owner on May 25, 2020. It is now read-only.

Commit

Permalink
Added phpcs.xml and a phpcs build target
Browse files Browse the repository at this point in the history
  • Loading branch information
morozov committed Dec 2, 2017
1 parent ccdbadb commit 2d1660e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ install:
test:
vendor/bin/phpunit --color
vendor/bin/phpstan analyze -l7 src tests
vendor/bin/phpcs
coverage:
$(eval TMPDIR=$(shell mktemp -d))
vendor/bin/phpunit --coverage-html=$(TMPDIR)
Expand Down
11 changes: 11 additions & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<ruleset>
<arg name="basepath" value="."/>

<file>src</file>
<file>include</file>
<file>tests</file>
<exclude-pattern>tests/fixtures/*</exclude-pattern>

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

0 comments on commit 2d1660e

Please sign in to comment.