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 2
2
HDNET Coding Standars für PHP
3
3
4
4
## 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
+
5
13
``` 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
10
17
```
11
18
12
19
Im Projekt:
@@ -15,7 +22,11 @@ pre-commit einrichten: http://pre-commit.com/#usage
15
22
pre-commit install
16
23
```
17
24
### 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 >
21
32
```
You can’t perform that action at this time.
0 commit comments