yuru-yuri/manga-py

View on GitHub
manga_py/crypt/sunday_webry_com.py

Summary

Maintainability
A
0 mins
Test Coverage

Function def4 has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
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
Severity: Minor
Found in manga_py/crypt/sunday_webry_com.py - About 1 hr to fix

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

    def def3(self, g, n, s, a, y, b, i, r, f):
Severity: Major
Found in manga_py/crypt/sunday_webry_com.py - About 1 hr to fix

    Function def2 has 9 arguments (exceeds 4 allowed). Consider refactoring.
    Wontfix

        def def2(self, y, i, n, a, s, f, r, g, b):
    Severity: Major
    Found in manga_py/crypt/sunday_webry_com.py - About 1 hr to fix

      Function def4 has 9 arguments (exceeds 4 allowed). Consider refactoring.
      Wontfix

          def def4(self, y, g, n, r, f, s, a, i, b):
      Severity: Major
      Found in manga_py/crypt/sunday_webry_com.py - About 1 hr to fix

        Function def1 has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Wontfix

            def def1(self, f, b, s, r, a, i):
        Severity: Minor
        Found in manga_py/crypt/sunday_webry_com.py - About 45 mins to fix

          Function solve has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Wontfix

              def solve(self, width: int, height: int, element_width: int, element_height: int, n: int):
          Severity: Minor
          Found in manga_py/crypt/sunday_webry_com.py - About 35 mins to fix

            There are no issues that match your filters.

            Category
            Status