Skip to content

Can't find a sniffer that removes extra (more than 1) blank lines #575

Answered by jrfnl
javaDeveloperKid asked this question in Q&A
Discussion options

You must be logged in to vote

I wouldn't have mentioned it if it didn't...

Hmmm, I've commented out all other rules in config file and it worked (this one was the last one in the file). Wondering why

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:

<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines">
    <severity>5</severity>
</rule>

That should overrule the earlier exclusion.

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@javaDeveloperKid
Comment options

@javaDeveloperKid
Comment options

@javaDeveloperKid
Comment options

@jrfnl
Comment options

Answer selected by javaDeveloperKid
@javaDeveloperKid
Comment options

@javaDeveloperKid
Comment options

@jrfnl
Comment options

@jrfnl
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants