Showing 4,191 of 4,191 total issues
Wrong hanging indentation before block (add 4 spaces). Open
len(word) > 5 and word[-2:] == 'nd'
- Read upRead up
- Exclude checks
TODO len(word) > 5 and word[-2:] == 'nd' ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and len(word) >= 2
- Read upRead up
- Exclude checks
TODO and len(word) >= 2 ^ |
Wrong hanging indentation before block (add 4 spaces). Open
len(word[r1_start:]) >= 2
- Read upRead up
- Exclude checks
TODO len(word[r1_start:]) >= 2 ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and word[-3] != 'e'
- Read upRead up
- Exclude checks
TODO and word[-3] != 'e' ^ |
Wrong hanging indentation before block (add 4 spaces). Open
resource_name: str,
- Read upRead up
- Exclude checks
TODO resource_name: str, ^ |
Constant name data_path
doesn't conform to UPPER_CASE naming style Open
data_path = [] # type: List[str]
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
Argument name m
doesn't conform to snake_case naming style Open
def _get_parts(m: Match[str]) -> str:
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
Wrong hanging indentation before block (add 4 spaces). Open
term[i : i + pattern_length] != pattern
- Read upRead up
- Exclude checks
TODO term[i : i + pattern_length] != pattern ^ |
Wrong hanging indentation before block (add 4 spaces). Open
strip: bool,
- Read upRead up
- Exclude checks
TODO strip: bool, ^ |
Too many statements (57/50) Open
def _phonetic(
- Read upRead up
- Exclude checks
Used when a function or method has too many statements. You should then split it in smaller functions / methods.
Method could be a function Open
def _phonetic_number(self, phonetic: str) -> str:
- Read upRead up
- Exclude checks
Used when a method doesn't use its bound instance, and so could be written as a function.
Wrong hanging indentation before block (add 4 spaces). Open
and word[-3] not in self._vowels
- Read upRead up
- Exclude checks
TODO and word[-3] not in self._vowels ^ |
Constant name _paths_from_env
doesn't conform to UPPER_CASE naming style Open
_paths_from_env = os.environ.get('ABYDOS_DATA', str('')).split(
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
Unnecessary elif
after return
Open
if code == 'J7':
- Read upRead up
- Exclude checks
Used in order to highlight an unnecessary block of code following an if containing a return statement. As such, it will warn when it encounters an else following a chain of ifs, all of them containing a return statement.
Wrong hanging indentation before block (add 4 spaces). Open
not found
- Read upRead up
- Exclude checks
TODO not found ^ |
Wrong hanging indentation before block (add 4 spaces). Open
self,
- Read upRead up
- Exclude checks
TODO self, ^ |
Wrong hanging indentation before block (add 4 spaces). Open
src: str,
- Read upRead up
- Exclude checks
TODO src: str, ^ |
Too few public methods (1/2) Open
class CLEFSwedish(_Stemmer):
- 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
not upper_initial and word[-1] in {'t', '!'}
- Read upRead up
- Exclude checks
TODO not upper_initial and word[-1] in {'t', '!'} ^ |
Parameters differ from overridden 'encode' method Open
def encode(self, fname: str) -> str:
- Read upRead up
- Exclude checks
Used when a method has a different number of arguments than in the implemented interface or in an overridden method.