Skip to content

Commit

Permalink
Sort the lint rules into groups.
Browse files Browse the repository at this point in the history
  • Loading branch information
spacedmonkey committed Jan 9, 2023
1 parent 6ae7240 commit e5543bf
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,11 @@
</rule>
<rule ref="SlevomatCodingStandard.Functions.StaticClosure" />

<rule ref="SlevomatCodingStandard.PHP">
<exclude name="SlevomatCodingStandard.PHP.RequireExplicitAssertion" />
<exclude name="SlevomatCodingStandard.PHP.DisallowReference" />
</rule>

<!-- Class names should be referenced via ::class constant when possible. -->
<rule ref="SlevomatCodingStandard.Classes.ModernClassNameReference">
<properties>
Expand All @@ -219,14 +224,6 @@
<!-- Requires declaring visibility for class constants. -->
<rule ref="SlevomatCodingStandard.Classes.ClassConstantVisibility" />

<rule ref="SlevomatCodingStandard.PHP">
<exclude name="SlevomatCodingStandard.PHP.RequireExplicitAssertion" />
<exclude name="SlevomatCodingStandard.PHP.DisallowReference" />
</rule>

<!-- Requires declaring visibility for class constants. -->
<rule ref="SlevomatCodingStandard.Classes.ClassConstantVisibility" />

<rule ref="SlevomatCodingStandard.Classes.ClassStructure">
<properties>
<property name="groups" type="array">
Expand Down

0 comments on commit e5543bf

Please sign in to comment.