Skip to content

Commit 9a8774a

Browse files
committed
add .phpcs.xml to enforce PSR-12 coding standard #18
1 parent c7b4c4b commit 9a8774a

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
tests/ export-ignore
44
.gitattributes export-ignore
55
.gitignore export-ignore
6+
.phpcs.xml export-ignore
67
composer.* export-ignore
78
phpunit.xml export-ignore
89
README.md export-ignore

.phpcs.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="PSR12" namespace="GregorJ\Standards">
3+
<description>PSR12 programming standard</description>
4+
<!-- display progress -->
5+
<arg value="p"/>
6+
<arg value="n"/>
7+
<!-- directories and files to check -->
8+
<file>./src</file>
9+
<file>./tests</file>
10+
<!-- Use PSR12 as a standard -->
11+
<rule ref="PSR12">
12+
</rule>
13+
</ruleset>

0 commit comments

Comments
 (0)