Skip to content

Commit 72a4bd6

Browse files
committed
Add basic Easy Coding Standard support + config
1 parent 6eeccc5 commit 72a4bd6

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"php": "^7.4",
1313
"ergebnis/composer-normalize": "^2.4",
1414
"php-parallel-lint/php-parallel-lint": "^1.2",
15-
"phpmd/phpmd": "^2.8"
15+
"phpmd/phpmd": "^2.8",
16+
"symplify/easy-coding-standard-prefixed": "^7.2"
1617
}
1718
}

ecs.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
parameters:
2+
sets:
3+
- 'clean-code'
4+
- 'dead-code'
5+
- 'psr12'
6+
- 'php70'
7+
- 'php71'
8+
- 'common'
9+
10+
line_ending: '\n'
11+
12+
services:
13+
PhpCsFixer\Fixer\PhpUnit\PhpUnitMethodCasingFixer:
14+
case: 'snake_case'

0 commit comments

Comments
 (0)