This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Drupal\Tests\module_tests\Traits; | |
use Drupal\Core\Config\FileStorage; | |
use Drupal\Core\Config\StorageInterface; | |
/** | |
* Trait for importing configuration from the sync directory. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parameters: | |
level: 1 | |
paths: | |
- web/modules/custom | |
reportUnmatchedIgnoredErrors: false | |
ignoreErrors: | |
# new static() is a best practice in Drupal, so we cannot fix that. | |
- "#^Unsafe usage of new static#" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<ruleset name="drupal_phpcs_configuration"> | |
<!-- From https://www.hashbangcode.com/article/drupal-9-using-phpcodesniffer-inspect-custom-code --> | |
<!-- Use Drupal and DrupalPractice standards. --> | |
<rule ref="Drupal"/> | |
<rule ref="DrupalPractice"/> | |
<!-- Inluce the extensions of the files we want to test. --> | |
<arg name="extensions" value="php,module,inc,install,test,profile,theme,css,info,txt,md,yml"/> |