Skip to content

Commit 59c56f3

Browse files
committed
Remove unnecessary change to ruleset.xml. Demonstrate test failure
1 parent 80df663 commit 59c56f3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

coder_sniffer/Drupal/ruleset.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
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"/>
75
<!-- All Drupal code files must be UTF-8 encoded and we treat them as such. -->
86
<arg name="encoding" value="utf-8"/>
97

@@ -67,7 +65,7 @@
6765
<rule ref="Generic.PHP.DeprecatedFunctions"/>
6866
<rule ref="Generic.PHP.DisallowShortOpenTag">
6967
<!-- Do not run this sniff on .yml files -->
70-
<exclude-pattern>*.yml</exclude-pattern>
68+
<!-- <exclude-pattern>*.yml</exclude-pattern> -->
7169
</rule>
7270
<rule ref="Generic.PHP.LowerCaseKeyword"/>
7371
<rule ref="Generic.PHP.UpperCaseConstant"/>

tests/Drupal/good/good.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
top_level:
2+
# Generic.PHP.DisallowShortOpenTag should not complain at the short xml tag below.
23
data: '<?xml anything ?>\n'

0 commit comments

Comments
 (0)