Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion coder_sniffer/Drupal/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@
<rule ref="Generic.NamingConventions.ConstructorName"/>
<rule ref="Generic.NamingConventions.UpperCaseConstantName"/>
<rule ref="Generic.PHP.DeprecatedFunctions"/>
<rule ref="Generic.PHP.DisallowShortOpenTag"/>
<rule ref="Generic.PHP.DisallowShortOpenTag">
<!-- Do not run this sniff on .yml files -->
<exclude-pattern>*.yml</exclude-pattern>
</rule>
<rule ref="Generic.PHP.LowerCaseKeyword"/>
<rule ref="Generic.PHP.UpperCaseConstant"/>
<rule ref="Generic.Strings.UnnecessaryStringConcat">
Expand Down
3 changes: 3 additions & 0 deletions tests/Drupal/good/good.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
top_level:
# Generic.PHP.DisallowShortOpenTag should not complain at the short xml tag below.
data: '<?xml anything ?>\n'