-
Hi, I have both PHP_CodeSniffer and PHPCSExtra installed and I can't find a sniffer (or sniffers that when combined give that effect) that removes extra blank lines. Example: function foo()
{
echo 'one';
-
echo 'two';
} |
Beta Was this translation helpful? Give feedback.
Answered by
jrfnl
Jul 25, 2024
Replies: 1 comment 11 replies
-
Try |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I wouldn't have mentioned it if it didn't...
You're probably including a predefined ruleset which already includes that sniff, but excludes the
Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines
error code.Revert whatever changes you made in your ruleset now and try adding the below towards the end instead:
That should overrule the earlier exclusion.