Skip to content

Commit 9d70ab5

Browse files
committed
Add good.yml to demonstrate the problem
1 parent 884d5cf commit 9d70ab5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

coder_sniffer/Drupal/ruleset.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
<!-- See http://pear.php.net/manual/en/package.php.php-codesniffer.annotated-ruleset.php -->
33
<ruleset name="Drupal">
44
<description>Drupal coding standard</description>
5+
<!-- Files with these extensions are checked, see core/phpcs.xml.dist -->
6+
<arg name="extensions" value="engine,inc,install,module,php,profile,test,theme,yml"/>
57
<!-- All Drupal code files must be UTF-8 encoded and we treat them as such. -->
68
<arg name="encoding" value="utf-8"/>
79

@@ -65,7 +67,7 @@
6567
<rule ref="Generic.PHP.DeprecatedFunctions"/>
6668
<rule ref="Generic.PHP.DisallowShortOpenTag">
6769
<!-- Do not run this sniff on .yml files -->
68-
<exclude-pattern>**/*.yml</exclude-pattern>
70+
<!-- <exclude-pattern>*.yml</exclude-pattern> -->
6971
</rule>
7072
<rule ref="Generic.PHP.LowerCaseKeyword"/>
7173
<rule ref="Generic.PHP.UpperCaseConstant"/>

tests/Drupal/good/good.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
top_level:
2+
data: '<?xml anything ?>\n'

0 commit comments

Comments
 (0)