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

Fix multiple underscores in method name when allow-underscore-test is… #852

Merged
merged 4 commits into from Jan 11, 2021

Conversation

SanderSander
Copy link
Contributor

@SanderSander SanderSander commented Dec 3, 2020

Type: bugfix
Issue: Resolves #851
Breaking change: no

This PR adds an extra test to allow methods like test_some_action_i_do currently only a single underscore is allowed.
There was one test that tested methods with multiple underscores which is modified to test 2 consecutive underscores which shouldn't be allowed.

@kylekatarnls
Copy link
Member

kylekatarnls commented Dec 3, 2020

I see the difference now, not sure about the exact initial intent but I'm OK to relax the rule for multiple underscore chunks.

@tvbeek tvbeek merged commit 5cc2d16 into phpmd:master Jan 11, 2021
@ravage84 ravage84 added this to the 2.x (unspecific) milestone May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

allow-underscore-test for CamelCaseMethod gives unexpected results
4 participants