Code Climate PHP_CodeSniffer Engine for Drupal
710
codeclimate-phpcodesniffer-drupal is a Code Climate engine that wraps the PHP_Code Sniffer static analysis tool, configured for Drupal. You can run it on your command line using the Code Climate CLI, or on our hosted analysis platform.
PHP_CodeSniffer helps you detect violations of a defined coding standard.
codeclimate engines:enable phpcodesniffer-drupal. This command both installs the engine and enables it in your .codeclimate.yml file.codeclimate analyze.###Config Options
Format the values for these config options per the PHP_CodeSniffer documentation.
###Sample Config
exclude_paths:
- "/examples/**/*"
engines:
phpcodesniffer-drupal:
enabled: true
config:
file_extensions: "php,module,inc,install,test,profile,theme,js,css,info,txt,md"
standard: "Drupal,DrupalPractice"
ratings:
paths:
- "**.php"
- "**.module"
- "**.inc"
- "**.install"
- "**.test"
- "**.profile"
- "**.theme"
- "**.js"
- "**.css"
- "**.info"
- "**.txt"
- "**.md"
For help with PHP_CodeSniffer, check out their documentation.
If you're running into a Code Climate issue, first look over this project's GitHub Issues, as your question may have already been covered. If not, go ahead and open a support ticket with us.
Content type
Image
Digest
Size
16.8 MB
Last updated
over 10 years ago
docker pull civicactions/codeclimate-phpcodesniffer-drupal