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: make the prefix comparison more code style independent #1278

Merged

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Jan 4, 2018

This allows for prefixed functions, classes, hooks in camelCase and other naming conventions.

Fixes #1239

While looking at the prefix check, I noticed a secondary bug which is fixed in a separate commit:

Invalid prefixes which did not pass the second validation check would still be added to the validated_prefixes array and the sniff would still run, even though no valid prefixes were available.

jrfnl added 2 commits January 4, 2018 17:52
This allows for prefixed functions, classes, hooks in camelCase and other naming conventions.

Fixes 1239
Bug fix.

Invalid prefixes which did not pass the second validation check would still be added to the `validated_prefixes` array and the sniff would still run, even though no valid prefixes were available.
@GaryJones GaryJones merged commit 18e6653 into develop Jan 4, 2018
@GaryJones GaryJones deleted the feature/1239-prefix-all-globals-code-style-independence branch January 4, 2018 20: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.

PrefixAllGlobals: make independent of case naming conventions
3 participants