ricorocks-digital-agency / ricorocks-coding-standard
A set of rules that can be applied to projects to ensure a consistent level of code quality.
Installs: 488
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:package
Requires
- php: ^8.0
Requires (Dev)
README
This project contains sniffers for coding standards that are expected to be met on Ricorocks projects.
Installation
composer require --dev ricorocks-digital-agency/ricorocks-coding-standard
Usage
To use this package, you'll need to have PHP Code Sniffer installed in you project:
composer require --dev squizlabs/php_codesniffer
Now run the code sniffer, pointing the Code Sniffer command to our installed coding standard:
./vendor/bin/phpcs --standard=./vendor/ricorocks-digital-agency/ricorocks-coding-standard/RicorocksStandard ./src
Note: When working in a Laravel project, you should change
./src
for./app ./config ./database ./routes
. It usually makes more sense to alias this command to a composer script.