enter-at/python-aws-lambda-handlers

View on GitHub

Showing 364 of 364 total issues

Function __call__ has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    def __call__(self, handler: Callable):  # noqa: D102
        @wraps(handler)
        def wrapper(*args):
            try:
                if len(args) > self._number_of_arguments:
Severity: Minor
Found in lambda_handlers/handlers/lambda_handler.py - About 25 mins 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

Expected an indentation at 8 instead of at 6.
Open

      "License" shall mean the terms and conditions for use, reproduction,
Severity: Minor
Found in LICENSE by editorconfig

Expected an indentation at 8 instead of at 6.
Open

      otherwise, or (ii) ownership of fifty percent (50%) or more of the
Severity: Minor
Found in LICENSE by editorconfig

Expected an indentation at 8 instead of at 6.
Open

      source, and configuration files.
Severity: Minor
Found in LICENSE by editorconfig

Expected an indentation at 8 instead of at 6.
Open

      of this License, Derivative Works shall not include works that remain
Severity: Minor
Found in LICENSE by editorconfig

Expected an indentation at 4 instead of at 3.
Open

   2. Grant of Copyright License. Subject to the terms and conditions of
Severity: Minor
Found in LICENSE by editorconfig

Expected an indentation at 8 instead of at 6.
Open

      where such license applies only to those patent claims licensable
Severity: Minor
Found in LICENSE by editorconfig

Expected an indentation at 8 instead of at 6.
Open

      or a Contribution incorporated within the Work constitutes direct
Severity: Minor
Found in LICENSE by editorconfig

Expected an indentation at 12 instead of at 10.
Open

          that such additional attribution notices cannot be construed
Severity: Minor
Found in LICENSE by editorconfig

Expected an indentation at 8 instead of at 6.
Open

      for use, reproduction, or distribution of Your modifications, or
Severity: Minor
Found in LICENSE by editorconfig

Expected an indentation at 4 instead of at 3.
Open

   5. Submission of Contributions. Unless You explicitly state otherwise,
Severity: Minor
Found in LICENSE by editorconfig

Expected an indentation at 8 instead of at 6.
Open

      appropriateness of using or redistributing the Work and assume any
Severity: Minor
Found in LICENSE by editorconfig

Expected an indentation at 4 instead of at 3.
Open

   8. Limitation of Liability. In no event and under no legal theory,
Severity: Minor
Found in LICENSE by editorconfig

Expected an indentation at 8 instead of at 6.
Open

      incurred by, or claims asserted against, such Contributor by reason
Severity: Minor
Found in LICENSE by editorconfig

Expected an indentation at 4 instead of at 3.
Open

   APPENDIX: How to apply the Apache License to your work.
Severity: Minor
Found in LICENSE by editorconfig

Expected an indentation at 32 instead of at 33.
Open

../../LICENSE
Severity: Minor
Found in docs/about/license.md by editorconfig

Expected an indentation at 4 instead of at 3.
Open

Severity: Minor
Found in docs/about/license.md by editorconfig

Expected an indentation at 8 instead of at 6.
Open

Severity: Minor
Found in docs/about/license.md by editorconfig

Expected an indentation at 8 instead of at 6.
Open

Severity: Minor
Found in docs/about/license.md by editorconfig

Expected an indentation at 8 instead of at 6.
Open

Severity: Minor
Found in docs/about/license.md by editorconfig
Severity
Category
Status
Source
Language