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

Method extractions in cleditHighlighter #1556

Closed

Conversation

yakryder
Copy link

@yakryder yakryder commented Oct 8, 2019

Really simple stuff. For me this is a small improvement, but I'd be interested in some guidance on the intended file organization in general and the function that is currently called removeUnauthorizedSiblingNodesFrom specifically.

If this looks worse to you rather than better it's no problem :)

Follows practice of naming rather than commenting and example of `highlight/1` in same file
Follows practice of naming rather than commenting and example of
`highlight/1` in same file

Extracts `removeUnauthorizedSiblingNodesFrom/1` and called helper
`lacksSection/1`

Wondering if this function should just be called
`removeSectionlessNodesFrom` as it’s local and sectionlessness seems to
be the only rejection criterion
@yakryder
Copy link
Author

yakryder commented Oct 8, 2019

Well that's embarrassing. I'll fix the linting today or tomorrow. Was trying to hurry up and get this clean before moving onto next part of day.

@yakryder yakryder closed this Oct 9, 2019
@yakryder yakryder deleted the method-extraction-cledithighlighter branch October 9, 2019 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant