-
Notifications
You must be signed in to change notification settings - Fork 17
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
refactored method_siblings #542
Conversation
start with the same names | ||
''' | ||
def _is_method_names_close(self, node: ASTNode, new_node: ASTNode) -> bool: | ||
node_name = re.split('([A-Z][^A-Z]*)', node.name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is better use [0]
right here, it will allow to give better name to node_name
. Maybe something like this
node_name = re.split('([A-Z][^A-Z]*)', node.name) | |
common_prefix = re.split('([A-Z][^A-Z]*)', node.name)[0] |
And change the next line accordingly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unfortunately i cant change it, because, after that I check len(node_name) > 1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then we better pick up a different name.
@rultor merge |
@acheshkov OK, I'll try to merge now. You can check the progress of the merge here |
@acheshkov Done! FYI, the full log is here (took me 18min) |
In case of #528