File tree Expand file tree Collapse file tree 1 file changed +18
-7
lines changed Expand file tree Collapse file tree 1 file changed +18
-7
lines changed Original file line number Diff line number Diff line change 22HDNET Coding Standars für PHP
33
44## Installation
5+
6+ Repository zu composer.json hinzufügen
7+ ```
8+ "repositories": [
9+ { "type": "github", "url": "https://github.com/HDNET/coding-standards" }
10+ ]
11+ ```
12+
513``` sh
6- brew tap HDNET/homebrew-hdnet
7- brew install hdnet-coding-standards
8- brew install python3
9- pip3 install pre-commit
14+ composer require --dev squizlabs/php_codesniffer ^3.0
15+ composer require --dev escapestudios/symfony2-coding-standard ^3.4
16+ composer require --dev hdnet/coding-standards 3.x-dev
1017```
1118
1219Im Projekt:
@@ -15,7 +22,11 @@ pre-commit einrichten: http://pre-commit.com/#usage
1522 pre-commit install
1623```
1724### Team Black
18- CodingStandard setzen
19- ``` sh
20- phpcs --config-set default_standard HDNETBlack
25+ Datei .phpcs.xml anlegen für neue Projekte
26+ ``` xml
27+ <?xml version =" 1.0" encoding =" UTF-8" ?>
28+ <ruleset name =" Example" >
29+ <config name =" installed_paths" value =" /app/vendor/escapestudios/symfony2-coding-standard/,/app/vendor/hdnet/coding-standards" />
30+ <rule ref =" HDNETBlack" />
31+ </ruleset >
2132```
You can’t perform that action at this time.
0 commit comments