Skip to content

Commit 4d48f4b

Browse files
committed
:octocat:
1 parent 6b2a529 commit 4d48f4b

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

phpcs.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,4 +164,25 @@
164164

165165
<rule ref="Squiz.Commenting.EmptyCatchComment" />
166166

167+
<!-- exclude some checks for the examples-->
168+
<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace">
169+
<exclude-pattern>examples</exclude-pattern>
170+
</rule>
171+
172+
<rule ref="PSR1.Classes.ClassDeclaration.MultipleClasses">
173+
<exclude-pattern>examples</exclude-pattern>
174+
</rule>
175+
176+
<rule ref="PSR1.Files.SideEffects.FoundWithSymbols">
177+
<exclude-pattern>examples</exclude-pattern>
178+
</rule>
179+
180+
<rule ref="Squiz.Classes.ClassFileName.NoMatch">
181+
<exclude-pattern>examples</exclude-pattern>
182+
</rule>
183+
184+
<rule ref="Squiz.PHP.DiscouragedFunctions.Discouraged">
185+
<exclude-pattern>examples</exclude-pattern>
186+
</rule>
187+
167188
</ruleset>

0 commit comments

Comments
 (0)