Skip to content

Commit

Permalink
Feature: replace PSR1.Methods.CamelCapsMethodName with Generic.Naming…
Browse files Browse the repository at this point in the history
…Conventions.CamelCapsFunctionName

Sniff Generic.NamingConventions.CamelCapsFunctionName requires
function and method names to be in camelCase format (strict)
  • Loading branch information
michalbundyra committed Oct 25, 2019
1 parent df93d48 commit 5aee88e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/WebimpressCodingStandard/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
<exclude name="Squiz.Functions.FunctionDeclarationArgumentSpacing.NoSpaceBeforeArg"/>
<!-- Replaced by WebimpressCodingStandard.NamingConventions.ValidVariableName -->
<exclude name="PSR2.Classes.PropertyDeclaration.Underscore"/>
<!-- Replaced by Generic.NamingConventions.CamelCapsFunctionName -->
<exclude name="PSR1.Methods.CamelCapsMethodName"/>
</rule>

<!-- Generic Rules -->
Expand All @@ -47,6 +49,7 @@
<rule ref="Generic.Formatting.SpaceAfterCast"/>
<rule ref="Generic.Formatting.SpaceAfterNot"/>
<rule ref="Generic.NamingConventions.ConstructorName"/>
<rule ref="Generic.NamingConventions.CamelCapsFunctionName"/>
<rule ref="Generic.PHP.DiscourageGoto"/>
<rule ref="Generic.PHP.ForbiddenFunctions">
<properties>
Expand Down

0 comments on commit 5aee88e

Please sign in to comment.