diff --git a/coder_sniffer/Drupal/autoload.php b/coder_sniffer/Drupal/coder_unique_autoload_phpcs_bug_2751.php similarity index 83% rename from coder_sniffer/Drupal/autoload.php rename to coder_sniffer/Drupal/coder_unique_autoload_phpcs_bug_2751.php index a853b7b89d0ebd58f3f9f0ecf4d1d094116debd3..8d90280a8a8252419200bc347600998c12ceb5f4 100644 --- a/coder_sniffer/Drupal/autoload.php +++ b/coder_sniffer/Drupal/coder_unique_autoload_phpcs_bug_2751.php @@ -3,6 +3,8 @@ /** * Includes classes which are not detected by PHP_CodeSniffer's autoloader. * + * This file has a weird name on purpose because of https://github.com/squizlabs/PHP_CodeSniffer/pull/2751 + * * @category PHP * @package PHP_CodeSniffer * @link http://pear.php.net/package/PHP_CodeSniffer diff --git a/coder_sniffer/Drupal/ruleset.xml b/coder_sniffer/Drupal/ruleset.xml index c894bcc75c4fb1b4ef59c96cc34e9aa8804d44a3..8b7d15827235fad4e11f2199b13f82b60703349c 100644 --- a/coder_sniffer/Drupal/ruleset.xml +++ b/coder_sniffer/Drupal/ruleset.xml @@ -5,7 +5,7 @@ <!-- All Drupal code files must be UTF-8 encoded and we treat them as such. --> <arg name="encoding" value="utf-8"/> - <autoload>autoload.php</autoload> + <autoload>./coder_unique_autoload_phpcs_bug_2751.php</autoload> <rule ref="Internal.NoCodeFound"> <!-- Empty files are fine, might be used for testing. --> diff --git a/coder_sniffer/DrupalPractice/ruleset.xml b/coder_sniffer/DrupalPractice/ruleset.xml index 1b7c3bbb04e3ba99f80556b045f5a5e0604f53f9..4336bbded1fa7af05163de60c75b5ce2381c886c 100644 --- a/coder_sniffer/DrupalPractice/ruleset.xml +++ b/coder_sniffer/DrupalPractice/ruleset.xml @@ -5,7 +5,7 @@ <!-- All Drupal code files must be UTF-8 encoded and we treat them as such. --> <arg name="encoding" value="utf-8"/> - <autoload>../Drupal/autoload.php</autoload> + <autoload>../Drupal/coder_unique_autoload_phpcs_bug_2751.php</autoload> <rule ref="Internal.NoCodeFound"> <!-- Empty files are fine, might be used for testing. -->