Skip to content

Commit

Permalink
correct new rules usage, disable some of them, for now (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
steache authored Oct 26, 2018
1 parent 06811aa commit a6aba11
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,36 @@

<!-- Use Slevomat code standard -->
<rule ref="SlevomatCodingStandard">
<exclude name="Generic.Commenting.Todo.TaskFound"/>
<exclude name="Generic.Commenting.Todo.CommentFound"/>
<exclude name="Generic.Commenting.Todo.TaskFound"/>
<exclude name="Generic.NamingConventions.UpperCaseConstantName"/>
<exclude name="Generic.WhiteSpace.DisallowSpaceIndent"/>
<exclude name="Squiz.Commenting.FunctionComment.InvalidReturn"/><!-- throws error with short type hint for integer and boolean -->
<exclude name="SlevomatCodingStandard.Namespaces.UseOnlyWhitelistedNamespaces"/>
<exclude name="SlevomatCodingStandard.Classes.SuperfluousExceptionNaming.SuperfluousSuffix"/>
<exclude name="SlevomatCodingStandard.Classes.SuperfluousInterfaceNaming.SuperfluousSuffix"/>
<exclude name="SlevomatCodingStandard.Classes.TraitUseSpacing.IncorrectLinesCountAfterLastUse"/>
<exclude name="SlevomatCodingStandard.Commenting.DocCommentSpacing.IncorrectLinesCountBetweenDescriptionAndAnnotations"/>
<exclude name="SlevomatCodingStandard.Commenting.DocCommentSpacing.IncorrectLinesCountBetweenDifferentAnnotationsTypes"/>
<exclude name="SlevomatCodingStandard.Commenting.RequireOneLinePropertyDocComment.MultiLinePropertyComment"/>
<exclude name="SlevomatCodingStandard.ControlStructures.ControlStructureSpacing.IncorrectLinesCountAfterControlStructure"/>
<exclude name="SlevomatCodingStandard.ControlStructures.ControlStructureSpacing.IncorrectLinesCountBeforeControlStructure"/>
<exclude name="SlevomatCodingStandard.ControlStructures.ControlStructureSpacing.IncorrectLinesCountBeforeFirstControlStructure"/>
<exclude name="SlevomatCodingStandard.ControlStructures.DisallowEmpty.DisallowedEmpty"/>
<exclude name="SlevomatCodingStandard.ControlStructures.EarlyExit.EarlyExitNotUsed"/>
<exclude name="SlevomatCodingStandard.ControlStructures.EarlyExit.UselessElse"/>
<exclude name="SlevomatCodingStandard.ControlStructures.NewWithoutParentheses.UselessParentheses"/>
<exclude name="SlevomatCodingStandard.ControlStructures.NewWithParentheses.MissingParentheses"/>
<exclude name="SlevomatCodingStandard.ControlStructures.RequireMultiLineTernaryOperator.MultiLineTernaryOperatorNotUsed"/>
<exclude name="SlevomatCodingStandard.ControlStructures.RequireTernaryOperator.TernaryOperatorNotUsed"/>
<exclude name="SlevomatCodingStandard.ControlStructures.RequireYodaComparison.RequiredYodaComparison"/>
<exclude name="SlevomatCodingStandard.Functions.StaticClosure.ClosureNotStatic"/>
<exclude name="SlevomatCodingStandard.Functions.UnusedParameter.UnusedParameter"/>
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedGlobalConstants"/>
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedGlobalFunctions"/>
<exclude name="SlevomatCodingStandard.Namespaces.UseOnlyWhitelistedNamespaces"/>
<exclude name="SlevomatCodingStandard.PHP.ShortList.LongListUsed"/>
<exclude name="SlevomatCodingStandard.PHP.TypeCast.InvalidCastUsed"/>
<exclude name="SlevomatCodingStandard.TypeHints.NullTypeHintOnLastPosition.NullTypeHintNotOnLastPosition"/>
<exclude name="Squiz.Commenting.FunctionComment.InvalidReturn"/><!-- throws error with short type hint for integer and boolean -->
</rule>

<rule ref="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly">
Expand Down

0 comments on commit a6aba11

Please sign in to comment.