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 8 Maintainability, 1 Complexity issues in clickgen\__main__.py #12

Closed
ful1e5 opened this issue Sep 20, 2020 · 0 comments · Fixed by #21
Closed

Fix 8 Maintainability, 1 Complexity issues in clickgen\__main__.py #12

ful1e5 opened this issue Sep 20, 2020 · 0 comments · Fixed by #21
Labels
wontfix This will not be worked on

Comments

@ful1e5
Copy link
Owner

ful1e5 commented Sep 20, 2020

CodeFactor found multiple issues:

Unnecessary "elif" after "return"

clickgen_main_.py:80

Unnecessary "else" after "return"

clickgen_main_.py:59

Redefining argument with the local name 'config'

clickgen_main_.py:54

The if statement can be replaced with 'return bool(test)'

clickgen_main_.py:59

Comparison to False should be 'not expr'

clickgen_main_.py:116
clickgen_main_.py:116
clickgen_main_.py:80

Comparison to True should be just 'expr'

clickgen_main_.py:82

Complex Method

clickgen_main_.py:90-192

@ful1e5 ful1e5 added the wontfix This will not be worked on label Sep 20, 2020
@ful1e5 ful1e5 mentioned this issue Jan 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant