Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
NEW Amend Travis build to run a simple PHP_CodeSniffer test.
At this stage, the test just checks line-length and line-endings, but previous commits have ensured that framework actually passes those tests. We can add more tests as we actually correct the code to pass those tests, and grow the test suite, as we had for unit tests.
- Loading branch information
Sam Minnee
committed
Sep 30, 2012
1 parent
1f7fc1f
commit b7e7c16
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ruleset name="SilverStripe"> | ||
<description>CodeSniffer ruleset for SilverStripe coding conventions.</description> | ||
|
||
<!-- exclude SCSS-generated CSS files --> | ||
<exclude-pattern>*/css/*</exclude-pattern> | ||
<exclude-pattern>css/*</exclude-pattern> | ||
|
||
<!-- exclude thirdparty content --> | ||
<exclude-pattern>thirdparty/*</exclude-pattern> | ||
<exclude-pattern>*/jquery-changetracker/*</exclude-pattern> | ||
<exclude-pattern>parsers/HTML/BBCodeParser/*</exclude-pattern> | ||
|
||
<!-- PHP-PEG generated file not intended for human consumption --> | ||
<exclude-pattern>*/SSTemplateParser.php$</exclude-pattern> | ||
|
||
<rule ref="Generic.Files.LineEndings.InvalidEOLChar"> | ||
<severity>8</severity> | ||
</rule> | ||
<rule ref="Generic.Files.LineEndings"> | ||
<properties> | ||
<property name="eolChar" value="\n" /> | ||
</properties> | ||
</rule> | ||
<rule ref="Generic.Files.LineLength.TooLong"> | ||
<severity>7</severity> | ||
</rule> | ||
<rule ref="Generic.Files.LineLength.MaxExceeded"> | ||
<severity>8</severity> | ||
</rule> | ||
<rule ref="Generic.Files.LineLength"> | ||
<properties> | ||
<property name="lineLimit" value="120"/> | ||
<property name="absoluteLineLimit" value="120"/> | ||
</properties> | ||
</rule> | ||
</ruleset> | ||
|