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

Pull Request Draft - operation_node refactor. #12

Merged
merged 2 commits into from
May 13, 2022

Conversation

radudum10
Copy link
Contributor

This is a draft in order to preview how I want to refactor the operation_node (a huge file of 1700+ lines) by extracting the classes. All methods will start with a docstring (in Google format) and a lot of them need a rewriting.

Docstrings were added for all the functions. A bug caused by an unchecked pointer has been solved. Also, I have renamed functions, variables, extracted duplicate codes, made new functions in order to have a more readable code.
This is how the operation_node will be splitted in multiple files. Each of those files will contain extracted classes from thefile. Also, NonTerminalNode and TerminalNode classes have already been extractedand they are a good way to preview how all the files will look.
@razvand razvand self-requested a review April 20, 2022 09:09
@razvand razvand self-assigned this Apr 20, 2022
@razvand razvand linked an issue Apr 20, 2022 that may be closed by this pull request
@razvand razvand requested a review from Timi-Duban April 20, 2022 09:11
@Timi-Duban Timi-Duban merged commit 4658b3c into malus-security:master May 13, 2022
@Timi-Duban
Copy link
Contributor

Timi-Duban commented May 16, 2022

Unit tests added into a PR on this fork!
But this PR shouldn't be closed, I merged it and canceled the push but we now need to open it again, probably by opening another PR and ref to this one.

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.

3 participants