File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 41
41
"symfony/var-dumper" : " ^5.2" ,
42
42
"phpunit/phpunit" : " 8.5.21" ,
43
43
"clean/phpdoc-md" : " ^0.19.1" ,
44
- "phpmd/phpmd" : " @stable"
44
+ "phpmd/phpmd" : " @stable" ,
45
+ "squizlabs/php_codesniffer" : " ^3.6.2"
45
46
}
46
47
}
Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ LAPI will advise you to ban this IP as it's within the 1.2.3.4/30 range.
221
221
222
222
### Coding standards
223
223
224
- #### PHPCS
224
+ #### PHPCS Fixer
225
225
226
226
We are using the [ PHP Coding Standards Fixer] ( https://cs.symfony.com/ )
227
227
@@ -239,9 +239,23 @@ ddev phpcsfixer my-own-modules/crowdsec-php-lib tools/php-cs-fixer
239
239
240
240
#### PHP Mess Detector
241
241
242
- To use the ` phpmd ` tool, you can run:
242
+ To use the [ PHPMD ] ( https://github.com/ phpmd/phpmd ) tool, you can run:
243
243
244
244
```
245
245
ddev phpmd ./my-own-modules/crowdsec-php-lib tools/phpmd/rulesets.xml src
246
246
247
+ ```
248
+
249
+ #### PHPCS and PHPCBF
250
+
251
+ To use [ PHP Code Sniffer] ( https://github.com/squizlabs/PHP_CodeSniffer ) tools, you can run:
252
+
253
+ ```
254
+ ddev phpcs ./my-own-modules/crowdsec-php-lib/vendor/bin/phpcs my-own-modules/crowdsec-php-lib/src
255
+ ```
256
+
257
+ and:
258
+
259
+ ```
260
+ ddev phpcbf ./my-own-modules/crowdsec-php-lib/vendor/bin/phpcs my-own-modules/crowdsec-php-lib/src
247
261
```
You can’t perform that action at this time.
0 commit comments