Skip to content

Commit d4fe933

Browse files
authored
Add doc about installing coding standard
Closes #1
1 parent 5079587 commit d4fe933

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,22 @@ command:
2222
composer require --dev projektmotor/symfony-coding-standard
2323
```
2424

25+
Optional: To install coding standard automatically edit your composer script:
26+
27+
```JSON
28+
scripts: {
29+
"post-install-cmd": [
30+
"@auto-scripts"
31+
],
32+
"post-update-cmd": [
33+
"@auto-scripts"
34+
],
35+
"auto-scripts": {
36+
"phpcs --config-set installed_paths vendor/projektmotor/symfony-coding-standard/ProjektMOTORCodingStandard/": "script",
37+
}
38+
}
39+
```
40+
2541
## Usage
2642

2743
Just create a `phpcs.xml.dist` in your project's root directory with the following content:

0 commit comments

Comments
 (0)