Showing 364 of 364 total issues
Function __call__
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
def __call__(self, handler: Callable): # noqa: D102
@wraps(handler)
def wrapper(*args):
try:
if len(args) > self._number_of_arguments:
- Read upRead up
- Create a ticketCreate a ticket
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
Open
"License" shall mean the terms and conditions for use, reproduction,
- Create a ticketCreate a ticket
- Exclude checks
Expected an indentation at 8 instead of at 6. Open
Open
otherwise, or (ii) ownership of fifty percent (50%) or more of the
- Create a ticketCreate a ticket
- Exclude checks
Expected an indentation at 8 instead of at 6. Open
Open
source, and configuration files.
- Create a ticketCreate a ticket
- Exclude checks
Expected an indentation at 8 instead of at 6. Open
Open
of this License, Derivative Works shall not include works that remain
- Create a ticketCreate a ticket
- Exclude checks
Expected an indentation at 4 instead of at 3. Open
Open
2. Grant of Copyright License. Subject to the terms and conditions of
- Create a ticketCreate a ticket
- Exclude checks
Expected an indentation at 8 instead of at 6. Open
Open
where such license applies only to those patent claims licensable
- Create a ticketCreate a ticket
- Exclude checks
Expected an indentation at 8 instead of at 6. Open
Open
or a Contribution incorporated within the Work constitutes direct
- Create a ticketCreate a ticket
- Exclude checks
Expected an indentation at 12 instead of at 10. Open
Open
that such additional attribution notices cannot be construed
- Create a ticketCreate a ticket
- Exclude checks
Expected an indentation at 8 instead of at 6. Open
Open
for use, reproduction, or distribution of Your modifications, or
- Create a ticketCreate a ticket
- Exclude checks
Expected an indentation at 4 instead of at 3. Open
Open
5. Submission of Contributions. Unless You explicitly state otherwise,
- Create a ticketCreate a ticket
- Exclude checks
Expected an indentation at 8 instead of at 6. Open
Open
appropriateness of using or redistributing the Work and assume any
- Create a ticketCreate a ticket
- Exclude checks
Expected an indentation at 4 instead of at 3. Open
Open
8. Limitation of Liability. In no event and under no legal theory,
- Create a ticketCreate a ticket
- Exclude checks
Expected an indentation at 8 instead of at 6. Open
Open
incurred by, or claims asserted against, such Contributor by reason
- Create a ticketCreate a ticket
- Exclude checks
Expected an indentation at 4 instead of at 3. Open
Open
APPENDIX: How to apply the Apache License to your work.
- Create a ticketCreate a ticket
- Exclude checks
Expected an indentation at 32 instead of at 33. Open
Open
../../LICENSE
- Create a ticketCreate a ticket
- Exclude checks
Expected an indentation at 4 instead of at 3. Open
Open
- Create a ticketCreate a ticket
- Exclude checks
Expected an indentation at 8 instead of at 6. Open
Open
- Create a ticketCreate a ticket
- Exclude checks
Expected an indentation at 8 instead of at 6. Open
Open
- Create a ticketCreate a ticket
- Exclude checks
Expected an indentation at 8 instead of at 6. Open
Open
- Create a ticketCreate a ticket
- Exclude checks