Skip to content

Commit 32da4c7

Browse files
committed
Require corpus/coding-standard
1 parent 8aef814 commit 32da4c7

File tree

3 files changed

+24
-3
lines changed

3 files changed

+24
-3
lines changed

Makefile

+10-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,17 @@ README.md: $(SRC_FILES)
44
vendor/bin/mddoc
55

66
.PHONY: fix
7-
fix:
7+
fix: cbf
88
vendor/bin/php-cs-fixer fix
99

1010
.PHONY: test
11-
test:
11+
test: cs
1212
vendor/bin/phpunit
13+
14+
.PHONY: cs
15+
cs:
16+
vendor/bin/phpcs
17+
18+
.PHONY: cbf
19+
cbf:
20+
vendor/bin/phpcbf

composer.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
"php": ">=7.1"
1313
},
1414
"require-dev": {
15-
"phpunit/phpunit": "^7.5"
15+
"phpunit/phpunit": "^7.5",
16+
"squizlabs/php_codesniffer": "^3.5",
17+
"corpus/coding-standard": "^0.1.0",
18+
"friendsofphp/php-cs-fixer": "^2.17"
1619
},
1720
"autoload": {
1821
"psr-4": {

phpcs.xml.dist

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0"?>
2+
<ruleset>
3+
4+
<file>src</file>
5+
<file>test</file>
6+
<file>example</file>
7+
8+
<rule ref="Corpus"/>
9+
10+
</ruleset>

0 commit comments

Comments
 (0)