Skip to content

Commit

Permalink
Mark mixed line endings as error
Browse files Browse the repository at this point in the history
  • Loading branch information
grappler committed Feb 10, 2017
1 parent 70e3b57 commit 6d0a2c6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions WordPress-Theme/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@
<!-- Alternative PHP open tags not allowed. -->
<rule ref="Generic.PHP.DisallowAlternativePHPTags"/>

<!-- Only UNIX line endings allowed. -->
<!-- Mixed line endings are not allowed. -->
<!-- Covers: https://github.com/Otto42/theme-check/blob/master/checks/lineendings.php -->
<rule ref="Generic.Files.LineEndings">
<properties>
<property name="eolChar" value="\n"/>
</properties>
<rule ref="Internal.LineEndings.Mixed">
<type>error</type>
</rule>

<!-- No ByteOrderMark allowed - important to prevent issues with content being sent before headers. -->
Expand Down

0 comments on commit 6d0a2c6

Please sign in to comment.