bellangelo / coding-standard
Bellangelo Coding Standard for PHP_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.
Fund package maintenance!
bellangelo
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:phpcodesniffer-standard
Requires
- php: ^v7.4
- dealerdirect/phpcodesniffer-composer-installer: ^0.6.2 || ^0.7 || ^1.0
- doctrine/inflector: ^2.0
- squizlabs/php_codesniffer: ^3
README
Bellangelo Coding Standard for PHP_CodeSniffer provides sniffs that fall into one category ( for now ):
- Formatting - rules for consistent code looks
How to install
composer require bellangelo/coding-standard --dev
Alphabetical list of sniffs
🔧 = Automatic errors fixing
- Bellangelo.Naming.AvoidNumberedVariableNames
- Bellangelo.Naming.DuplicateWordInNaming 🔧
- Bellangelo.Naming.SingularClassName 🔧
Bellangelo.Naming.AvoidNumberedVariableNames
Variables must not end in a number. This forces developers to use more descriptive names.
Bellangelo.Naming.DuplicateWordInNaming 🔧
Class names should not contain duplicate words. This sniff will check for class names that contain the same word twice and remove any duplicates.
Bellangelo.Naming.SingularClassName 🔧
Class names should be singular. This sniff will check for class names that are plural and change them to singular.