Skip to content

Commit 73dbbbe

Browse files
authored
Merge pull request #649 from WordPress/feature/phpcs-minor-ruleset-cleanup
2 parents 44cfa82 + b40ea58 commit 73dbbbe

1 file changed

Lines changed: 1 addition & 19 deletions

File tree

.phpcs.xml.dist

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
Miscellaneous other exclusions.
9393
========================================================================== -->
9494

95-
<!-- This repo complies with PSR 0 for filename conventions. -->
95+
<!-- This repo complies with PSR 4 for filename conventions. -->
9696
<exclude name="WordPress.Files.FileName"/>
9797

9898
<!-- WPCS demands long arrays. We'll be using short arrays from now on. -->
@@ -214,28 +214,10 @@
214214
#############################################################################
215215
-->
216216

217-
<!-- ==========================================================================
218-
Package code
219-
========================================================================== -->
220-
221-
<!-- Don't rename existing classes to prevent a BC break. -->
222-
<rule ref="PEAR.NamingConventions.ValidClassName.Invalid">
223-
<exclude-pattern>*/library/Deprecated\.php$</exclude-pattern>
224-
</rule>
225-
226-
<rule ref="Generic.Files.OneObjectStructurePerFile.MultipleFound">
227-
<exclude-pattern>*/library/Deprecated\.php$</exclude-pattern>
228-
</rule>
229-
230217
<!-- ==========================================================================
231218
Example code
232219
========================================================================== -->
233220

234-
<!-- Using short arrays in example code is fine. -->
235-
<rule ref="Generic.Arrays.DisallowShortArraySyntax.Found">
236-
<exclude-pattern>/examples/cookie_jar\.php$</exclude-pattern>
237-
</rule>
238-
239221
<!-- Using var_dump() in example code is fine. -->
240222
<rule ref="WordPress.PHP.DevelopmentFunctions.error_log_var_dump">
241223
<exclude-pattern>/examples/[^/]+\.php$</exclude-pattern>

0 commit comments

Comments
 (0)