Skip to content

Commit

Permalink
Issue #843: Correct a failed Travis build by excluding a PHPCS rule.
Browse files Browse the repository at this point in the history
There was an error:
Class file names should be based on the class name with 'class-'
But the format of the other test files is different.
So use that format, and exclude this rule for test files.
  • Loading branch information
Ryan Kienstra committed Jan 28, 2018
1 parent e9f394a commit d7104b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
</properties>
</rule>

<rule ref="WordPress.Files.FileName.InvalidClassFileName">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<rule ref="WordPress.Arrays.MultipleStatementAlignment.LongIndexSpaceBeforeDoubleArrow">
<exclude-pattern>tests/test-tag-and-attribute-sanitizer.php</exclude-pattern>
</rule>
Expand Down

0 comments on commit d7104b8

Please sign in to comment.