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

PrefixAllGlobals: improve error message clarity #1647

Merged
merged 1 commit into from
Feb 25, 2019

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Feb 18, 2019

When people run the sniffs without the -s option, the messages for some of the errors in this sniff were not specific enough as the "PrefixAllGlobals" part would not be seen.

I considered adjusting the error message template ERROR_MSG, however, this would cause more confusion as, for instance, namespace declarations will always be in the global namespace.

So, I've opted to adjust select error messages instead.

Issue identified by @justintadlock in WPTT/WPThemeReview#200 (comment)

When people run the sniffs without the `-s` option, the messages for some of the errors in this sniff were not specific enough as the "Prefix**AllGlobals**" part would not be seen.

I considered adjusting the error message template `ERROR_MSG`, however, this would cause more confusion as, for instance, namespace declarations will **always** be in the global namespace.

So, I've opted to adjust select error messages instead.
@jrfnl
Copy link
Member Author

jrfnl commented Feb 24, 2019

Just checking, is this waiting for something ?

@GaryJones GaryJones merged commit d0717e7 into develop Feb 25, 2019
@GaryJones GaryJones deleted the feature/prefix-all-globals-improve-msg-clarity branch February 25, 2019 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants