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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate ScopeClosingBraceSniff #102

Open
CarsonF opened this issue Jul 28, 2017 · 3 comments
Open

Duplicate ScopeClosingBraceSniff #102

CarsonF opened this issue Jul 28, 2017 · 3 comments

Comments

@CarsonF
Copy link

CarsonF commented Jul 28, 2017

PSR2 imports Squiz.WhiteSpace.ScopeClosingBrace.
Zend imports PEAR.WhiteSpace.ScopeClosingBrace.

It's hard to tell which one is better. I'm leaning towards keeping the one in PSR over Zend though.

CarsonF added a commit to bolt/codingstyle that referenced this issue Jul 28, 2017
@wickedOne
Copy link
Contributor

thanks for your input @CarsonF !

there are more duplicates (ClassDeclaration.MissingBrace, ScopeClosingBrace.indent to name a few)

it's not that this blocks phpcs from running nor that either of them is raising false positives.
in the end the violation needs to be fixed and after that both approve.

could you elaborate why we need to disable one of both?

@CarsonF
Copy link
Author

CarsonF commented Jul 29, 2017

Yes you are right. It just makes it a bit harder to sort through the list of errors in the report summary. I wouldn't have brought it up if it wasn't a simple one liner to disable the rule - I can PR if you want 😄

@wickedOne
Copy link
Contributor

yes, feel free to create a PR (personally i'd keep the PSR2 as well).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants