umanit / coding-standard
UmanIT PHP Coding Standard
Installs: 7
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:phpcodesniffer-standard
Requires
- php: ^8.2
- dealerdirect/phpcodesniffer-composer-installer: ^1.1
- slevomat/coding-standard: ^8.24
- squizlabs/php_codesniffer: ^4.0
README
A custom ruleset for PHP_CodeSniffer including:
- Default PSR12 compliance.
- Prohibit usage of certain PHP functions.
- A bunch of rules from
slevomat/coding-standard
. - A custom rule that forces usage of
@todo
annotation and forbid other ones likeTODO
,FIXME
orXXX
.
Usage
Edit your phpcs.xml
file to include the following:
<rule ref="UmanITCodingStandard" />