From 8a56e2a2ab0a53e61bf5f19a277d759dab35f896 Mon Sep 17 00:00:00 2001 From: Bec White Date: Thu, 6 Oct 2022 14:44:37 -0500 Subject: [PATCH] Add phpcs config back to the defaults.yml so that this doesn't break existing installs. --- defaults.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/defaults.yml b/defaults.yml index b3744bfa..f5f2df5a 100644 --- a/defaults.yml +++ b/defaults.yml @@ -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.