Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Fix pylama C901 errors in CLI (blocks too complex, move some code to functions) #6

Open
BBaoVanC opened this issue Mar 13, 2020 · 0 comments
Labels
pep/syntax PEP compliance and syntax fixes
Milestone

Comments

@BBaoVanC
Copy link
Owner

Pylama outputs the following:

'Loop 42' is too complex (11) [mccabe]

{
"resource": "/d:/github-repos/NameGenerator/namegen.py",
"owner": "python",
"code": "C901",
"severity": 4,
"message": "'Loop 42' is too complex (11) [mccabe]",
"source": "pylama",
"startLineNumber": 42,
"startColumn": 1,
"endLineNumber": 42,
"endColumn": 1
}

'If 75' is too complex (12) [mccabe]

{
"resource": "/d:/github-repos/NameGenerator/namegen.py",
"owner": "python",
"code": "C901",
"severity": 4,
"message": "'If 75' is too complex (12) [mccabe]",
"source": "pylama",
"startLineNumber": 75,
"startColumn": 1,
"endLineNumber": 75,
"endColumn": 1
}

@BBaoVanC BBaoVanC added enhancement New feature or request pep/syntax PEP compliance and syntax fixes and removed enhancement New feature or request labels Mar 13, 2020
@BBaoVanC BBaoVanC added this to the v2.6 milestone Mar 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pep/syntax PEP compliance and syntax fixes
Projects
None yet
Development

No branches or pull requests

1 participant