drupal-spider/drupalsecurity

Drupal Security is a library to review security issue of Drupal code.

Installs: 10

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 2

Open Issues: 0

Type:phpcodesniffer-standard

1.2.2 2025-04-23 08:11 UTC

This package is auto-updated.

Last update: 2025-04-23 08:13:53 UTC


README

DrupalSecurity is a library for automated Drupal code security reviews. It defines rules for PHP_CodeSniffer

Note that Javascript has not been supported yet. To check and fix Javascript files please use ESLint and see the Drupal ESLint 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