An open API service indexing awesome lists of open source software.

https://github.com/drupal-spider/drupalsecurity

PHP code sniffer plugin for Drupal code security audit.
https://github.com/drupal-spider/drupalsecurity

drupal php-codesniffer phpcs security security-audit security-scan security-scanner security-testing

Last synced: 2 months ago
JSON representation

PHP code sniffer plugin for Drupal code security audit.

Awesome Lists containing this project

README

        

# DrupalSecurity

DrupalSecurity is a library for automated Drupal code security reviews. It
defines rules for [PHP_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer)

Note that Javascript has not been supported yet. To check and fix Javascript files
please use [ESLint](http://eslint.org/) and see the
[Drupal ESLint](https://www.drupal.org/node/1955232) documentation.

## Global installation

composer global require drupal-spider/drupalsecurity

## Usage

Check Drupal Security standards

phpcs --standard=DrupalSecurity --ignore='*/tests/*' --extensions=php,module,inc,install,theme,yml,twig [/file/to/drupal/module]

List all sniffers

phpcs --standard=DrupalSecurity -e