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

Add allow-underscore option for CamelCaseParameterName & CamelCaseVariableName #749

Merged
merged 6 commits into from Apr 17, 2020
Merged

Add allow-underscore option for CamelCaseParameterName & CamelCaseVariableName #749

merged 6 commits into from Apr 17, 2020

Conversation

tuc0w
Copy link

@tuc0w tuc0w commented Apr 15, 2020

Type: feature
Issue: Resolves #742
Breaking change: no

This PR adds the allow-underscore option to CamelCaseParameterName and CamelCaseVariableName to make it consistent to the other controversial rules. It is used the same way it is used by the existing controversial rules.

Copy link
Member

@tvbeek tvbeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice PR,

You created the tests for CamelCaseVariableName but I miss the tests for CamelCaseParameterName. Can you add them?

@tuc0w
Copy link
Author

tuc0w commented Apr 17, 2020

Nice PR,

You created the tests for CamelCaseVariableName but I miss the tests for CamelCaseParameterName. Can you add them?

Sure, I just didn't add them in first place because the whole CamelCaseParameterName tests are missing. Trying to add them today 👍

@tuc0w
Copy link
Author

tuc0w commented Apr 17, 2020

@tvbeek I just added the missing tests, should cover the cases now 🤔

@tuc0w tuc0w requested a review from tvbeek April 17, 2020 16:58
Copy link
Member

@tvbeek tvbeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR and the added test!

@tvbeek tvbeek merged commit d2750bf into phpmd:master Apr 17, 2020
@tuc0w
Copy link
Author

tuc0w commented Apr 17, 2020

No problem, thanks for the fast review!

@ravage84 ravage84 changed the title Add allow-underscore option Add allow-underscore option for CamelCaseParameterName & CamelCaseVariableName May 6, 2020
@ravage84
Copy link
Member

ravage84 commented May 6, 2020

This replaced the stale PR #363

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

Successfully merging this pull request may close these issues.

Add allow-underscore option
4 participants