Skip to content

Commit

Permalink
Add phpcs config back to the defaults.yml so that this doesn't break …
Browse files Browse the repository at this point in the history
…existing installs.
  • Loading branch information
becw committed Oct 6, 2022
1 parent 6726055 commit 8a56e2a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,27 @@ phplint:
# Path to a file where each line is a pattern matching files to lint.
includesfile: "${build.thebuild.dir}/defaults/standard/phplint.txt"

# Configuration for using PHP_CodeSniffer to review code according to the Drupal coding
# standards.
#
# DEPRECATED - to be removed in the-build 4.2
# This configuration is replaced by defaults/install/phpcs.xml.
#
# @see https://www.drupal.org/docs/develop/standards
# @see https://github.com/squizlabs/PHP_CodeSniffer
# @see https://www.drupal.org/project/coder
#
# These values are used in the defaults/build.xml template:
# $> phpcs --standard=${phpcs.standard} --ignore=${phpcs.ignore} ${phpcs.directories}
phpcs:
# Path to a PHP_CodeSniffer standard file.
standard: "${build.dir}/vendor/drupal/coder/coder_sniffer/Drupal/ruleset.xml"

# Space-separated list of directories to review.
directories: "${drupal.root}/modules/custom ${drupal.root}/themes/custom"

# Comma-separated list of extensions to check in the PHP_CodeSniffer review.
extensions: "php,module,inc,install,test,profile,theme,css,info,txt,yml,js"

# Configuration for using PHP Mess Detector to check for general PHP best practices,
# unused variables, and to analyze complexity.
Expand Down

0 comments on commit 8a56e2a

Please sign in to comment.