dev-master
9999999-devIsotop WordPress Coding Standard
MIT
The Requires
wordpress phpcs standards
Wallogit.com
2017 © Pedro Peláez
Isotop WordPress Coding Standard
The coding standard used for WordPress sites., (*1)
Standards are provided as a Composer package and can be installed with:, (*2)
composer create-project isotopsweden/isotopcs:dev-master
Composer will automatically install dependencies, register standards paths, and set default PHP Code Sniffer standard to Isotop., (*3)
You should update minimum-stability to dev and set prefer-stable to true., (*4)
{
"minimum-stability": "dev",
"prefer-stable": true
}
Then you can install isotopcs as a dependency., (*5)
composer require isotopsweden/isotopcs:dev-master --dev
vendor/bin/phpcs --extensions=php /path/to/folder/
Use linter-phpcs., (*6)
{
"phpcs_executable_path": "/path/to/isotopcs/vendor/bin/phpcs",
"phpcs_additional_args": {
"--standard": "Isotop"
}
}
Refer to Using PHP Code Sniffer Tool in PhpStorm documentation., (*7)
After installation Isotop standard will be available as a choice in PHP Code Sniffer Validation inspection., (*8)
Isotop WordPress Coding Standard
MIT
wordpress phpcs standards