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

Pylint alerts corrections as part of intervention experiment #34

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

evidencebp
Copy link

Makes the interventions describe in intervention issue.
The experiment is described here.

Each intervention was done in a dedicated commit with a message explaining it.

Removed unneeded parenthesis in if
Removed unneeded parenthesis in if
The main function had 13 branches while it is recommended to have at most 12.
I extracted one function, _set_output_directory.
This is a minimal change fixing the alert/
enumerate_domains had 15 branches while 12 are recommended.
I removed the handling of UnicodeError and subprocess.TimeoutExpired which just pass, as the else.
I also extracted _handle_nmap
Made 2 readable lines shorter
Made a readable line shorter
Removed two unnecessary pass commands.
They look like leftovers.
Made a readable line shorter
If had 6 terms, it is recommended not to have more than 5.
I extracted the logic of checking two variable, making the logic more structured.
print_banner comment says that it should print the credits but it implementation is just pass.
I removed the function and the single call to it, giving the same credit in less code.
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.

1 participant