smartbees/coding-standards-drupal

Installs: 6 170

Dependents: 0

Suggesters: 0

Security: 0

Type:phpcodesniffer-standard

2.5.0 2025-03-05 06:40 UTC

This package is auto-updated.

Last update: 2025-03-05 06:45:29 UTC


README

# Install coding standards.
composer req --dev smartbees/coding-standards-drupal
vendor/bin/sbcs init

# Add 'sbcs init' to the 'post-update-cmd' scripts in the composer.json file
# to automatically install the coding standards configs updates when they are
# available.
...
"scripts": {
    "post-update-cmd": [
        "vendor/bin/sbcs init"
    ],
...

# Run static analysis of the code.
vendor/bn/sbcs check

# Execute automatic code style fixes.
vendor/bin/sbcs check --fix