smartbees/coding-standards-drupal

安装次数: 2,992

依赖项: 0

建议者: 0

安全: 0

类型:phpcodesniffer-standard

2.4.0 2024-05-31 13:14 UTC

This package is auto-updated.

Last update: 2024-08-31 00:31:53 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