manga_py/crypt/sunday_webry_com.py
Function def4
has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring. Wontfix
Wontfix
def def4(self, y, g, n, r, f, s, a, i, b):
for l in range(y):
for m in range(g):
d = (l + 29 * n + 31 * m) % y
h = (m + 37 * n + 41 * d) % g
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function def3
has 9 arguments (exceeds 4 allowed). Consider refactoring. Wontfix
Wontfix
def def3(self, g, n, s, a, y, b, i, r, f):
Function def2
has 9 arguments (exceeds 4 allowed). Consider refactoring. Wontfix
Wontfix
def def2(self, y, i, n, a, s, f, r, g, b):
Function def4
has 9 arguments (exceeds 4 allowed). Consider refactoring. Wontfix
Wontfix
def def4(self, y, g, n, r, f, s, a, i, b):
Function def1
has 6 arguments (exceeds 4 allowed). Consider refactoring. Wontfix
Wontfix
def def1(self, f, b, s, r, a, i):
Function solve
has 5 arguments (exceeds 4 allowed). Consider refactoring. Wontfix
Wontfix
def solve(self, width: int, height: int, element_width: int, element_height: int, n: int):