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.
- Host: GitHub
- URL: https://github.com/drupal-spider/drupalsecurity
- Owner: drupal-spider
- Created: 2022-09-27T08:54:00.000Z (almost 3 years ago)
- Default Branch: 1.x-master
- Last Pushed: 2025-02-08T06:23:10.000Z (5 months ago)
- Last Synced: 2025-04-20T23:32:37.837Z (3 months ago)
- Topics: drupal, php-codesniffer, phpcs, security, security-audit, security-scan, security-scanner, security-testing
- Language: PHP
- Homepage:
- Size: 40 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
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