Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #107 from silverleague/support_short_names
Support short names
- Loading branch information
Showing
32 changed files
with
695 additions
and
251 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
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
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
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,31 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ruleset name="SilverStripe"> | ||
<description>CodeSniffer ruleset for SilverStripe coding conventions.</description> | ||
|
||
<!-- base rules are PSR-2 --> | ||
<rule ref="PSR2"> | ||
<!-- Current exclusions --> | ||
<exclude name="PSR1.Methods.CamelCapsMethodName"/> | ||
<exclude name="PSR1.Files.SideEffects.FoundWithSymbols"/> | ||
<exclude name="PSR2.Classes.PropertyDeclaration"/> | ||
<exclude name="PSR2.ControlStructures.SwitchDeclaration"/> <!-- causes php notice while linting --> | ||
<exclude name="PSR2.ControlStructures.SwitchDeclaration.WrongOpenercase"/> | ||
<exclude name="PSR2.ControlStructures.SwitchDeclaration.WrongOpenerdefault"/> | ||
<exclude name="PSR2.ControlStructures.SwitchDeclaration.TerminatingComment"/> | ||
<exclude name="PSR2.Methods.MethodDeclaration.Underscore"/> | ||
<exclude name="Squiz.Scope.MethodScope"/> | ||
<exclude name="Squiz.Classes.ValidClassName.NotCamelCaps"/> | ||
<exclude name="Generic.Files.LineLength.TooLong"/> | ||
<exclude name="PEAR.Functions.ValidDefaultValue.NotAtEnd"/> | ||
</rule> | ||
<rule phpcbf-only="true" ref="Squiz.Strings.ConcatenationSpacing"> | ||
<properties> | ||
<property name="spacing" value="1"/> | ||
<property name="ignoreNewlines" value="true"/> | ||
</properties> | ||
</rule> | ||
|
||
<!-- include php files only --> | ||
<arg name="extensions" value="php,lib,inc,php5"/> | ||
</ruleset> | ||
|
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
Oops, something went wrong.