ose / magento2-phpcs
Custom PHPCS Ruleset for Magento 2
1.2.3
2023-09-15 06:24 UTC
Requires
- php: ~7.4.0||~8.1.0
- dealerdirect/phpcodesniffer-composer-installer: ^1.0
- ose/coding-standard: ^9.0
- ose/magento-coding-standard: ^32.0
README
Description
This ruleset is meant to be used on Magento projects and modules. It combines PSR-12, Magento Coding Standards and custom rules from Slevomat Coding Standard
Installation
To use this ruleset, require it in composer:
composer require --dev ose/magento2-phpcs
Usage
You can check this custom phpcs ruleset has been installed with this command:
php vendor/bin/phpcs -i
You can run phpcs on the app/code/Ose
folder with this command:
php vendor/bin/phpcs --standard=magento2-phpcs app/code/Ose