Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra: add sniff to discourage the use of "long" closures #2311

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 9 additions & 0 deletions WordPress-Extra/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,15 @@
<!-- Detect useless "echo sprintf(...)". -->
<rule ref="Universal.CodeAnalysis.NoEchoSprintf"/>

<!-- Discourage the use of long closures. -->
<rule ref="Universal.FunctionDeclarations.NoLongClosures">
<properties>
<!-- Disable the error. -->
<property name="maxLines" value="9999"/>
</properties>
</rule>


<!--
#############################################################################
Code style sniffs for more recent PHP features and syntaxes.
Expand Down