ose / magento2-phpcs
Custom PHPCS Ruleset for Magento 2
Installs: 4 070
Dependents: 1
Suggesters: 0
Security: 0
Type:phpcodesniffer-standard
pkg:composer/ose/magento2-phpcs
Requires
- php: ~7.4.0||~8.1.0||~8.2.0||~8.3.0||~8.4.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