Showing 4,191 of 4,191 total issues
Wrong hanging indentation before block (add 4 spaces). Open
mean_func: Callable[[Sequence[float]], float] = amean,
- Read upRead up
- Exclude checks
TODO mean_func: Callable[[Sequence[float]], float] = amean, ^ |
Wrong hanging indentation before block (add 4 spaces). Open
'enes',
- Read upRead up
- Exclude checks
TODO 'enes', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and word[-1] not in self._vowels
- Read upRead up
- Exclude checks
TODO and word[-1] not in self._vowels ^ |
Too few public methods (1/2) Open
class SnowballDanish(_Snowball):
- Read upRead up
- Exclude checks
Used when class has too few public methods, so be sure it's really worth it.
Wrong hanging indentation before block (add 4 spaces). Open
and (
- Read upRead up
- Exclude checks
TODO and ( ^ |
Refactor this function to reduce its Cognitive Complexity from 51 to the 15 allowed. Open
def alignments(
- Read upRead up
- Exclude checks
Cognitive Complexity is a measure of how hard the control flow of a function is to understand. Functions with high Cognitive Complexity will be difficult to maintain.
See
TODO found Open
# TODO: use TypedDict when/if it's officially supported
- Exclude checks
Wrong hanging indentation before block (add 4 spaces). Open
mean_func: Callable[[Sequence[float]], float] = amean,
- Read upRead up
- Exclude checks
TODO mean_func: Callable[[Sequence[float]], float] = amean, ^ |
Wrong hanging indentation before block (add 4 spaces). Open
'gg',
- Read upRead up
- Exclude checks
TODO 'gg', ^ |
Merge this if statement with the enclosing one. Open
if (
- Read upRead up
- Exclude checks
Merging collapsible if
statements increases the code's readability.
Noncompliant Code Example
if condition1: if condition2: # ...
Compliant Solution
if condition1 and condition2: # ...
Refactor this function to reduce its Cognitive Complexity from 55 to the 15 allowed. Open
def _alignment_matrix(
- Read upRead up
- Exclude checks
Cognitive Complexity is a measure of how hard the control flow of a function is to understand. Functions with high Cognitive Complexity will be difficult to maintain.
See
Refactor this function to reduce its Cognitive Complexity from 18 to the 15 allowed. Open
def sim_score(self, src: str, tar: str) -> float:
- Read upRead up
- Exclude checks
Cognitive Complexity is a measure of how hard the control flow of a function is to understand. Functions with high Cognitive Complexity will be difficult to maintain.
See
Refactor this function to reduce its Cognitive Complexity from 32 to the 15 allowed. Open
def sim(self, src: str, tar: str) -> float:
- Read upRead up
- Exclude checks
Cognitive Complexity is a measure of how hard the control flow of a function is to understand. Functions with high Cognitive Complexity will be difficult to maintain.
See
Refactor this function to reduce its Cognitive Complexity from 53 to the 15 allowed. Open
def dist_abs(self, src: str, tar: str) -> float:
- Read upRead up
- Exclude checks
Cognitive Complexity is a measure of how hard the control flow of a function is to understand. Functions with high Cognitive Complexity will be difficult to maintain.
See
Wrong hanging indentation before block (add 4 spaces). Open
nums: Sequence[float],
- Read upRead up
- Exclude checks
TODO nums: Sequence[float], ^ |
Wrong hanging indentation before block (add 4 spaces). Open
ddof: int = 0,
- Read upRead up
- Exclude checks
TODO ddof: int = 0, ^ |
Wrong hanging indentation before block (add 4 spaces). Open
tn: float = 0.0,
- Read upRead up
- Exclude checks
TODO tn: float = 0.0, ^ |
Wrong hanging indentation before block (add 4 spaces). Open
fn: float = 0.0,
- Read upRead up
- Exclude checks
TODO fn: float = 0.0, ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and self._fp == other.false_pos()
- Read upRead up
- Exclude checks
TODO and self.fp == other.falsepos() ^ |
Wrong hanging indentation before block (add 4 spaces). Open
'ss',
- Read upRead up
- Exclude checks
TODO 'ss', ^ |