Showing 4,191 of 4,191 total issues
Wrong hanging indentation before block (add 4 spaces). Open
word[-3] not in self._vowels and word[-5:-2] != 'gem'
- Read upRead up
- Exclude checks
TODO word[-3] not in self._vowels and word[-5:-2] != 'gem' ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and len(word) > self._max_acro_length
- Read upRead up
- Exclude checks
TODO and len(word) > self.maxacro_length ^ |
Unnecessary elif
after return
Open
if word in self._exception1dict:
- 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.
Method could be a function Open
def _cond_c(self, word: str, suffix_len: int) -> bool:
- Read upRead up
- Exclude checks
Used when a method doesn't use its bound instance, and so could be written as a function.
Method could be a function Open
def _recode24(self, stem: 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 i + 1 < len(word)
- Read upRead up
- Exclude checks
TODO and i + 1 < len(word) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and word[-4] not in self._vowels
- Read upRead up
- Exclude checks
TODO and word[-4] not in self._vowels ^ |
Wrong hanging indentation before block (add 4 spaces). Open
rule: Tuple[bool, int, Optional[str], bool],
- Read upRead up
- Exclude checks
TODO rule: Tuple[bool, int, Optional[str], bool], ^ |
Wrong hanging indentation before block (add 4 spaces). Open
self._var == 'Adams'
- Read upRead up
- Exclude checks
TODO self._var == 'Adams' ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and word[-4] == 'l'
- Read upRead up
- Exclude checks
TODO and word[-4] == 'l' ^ |
Wrong hanging indentation before block (add 4 spaces). Open
r1_start >= 1
- Read upRead up
- Exclude checks
TODO r1_start >= 1 ^ |
Wrong hanging indentation before block (add 4 spaces). Open
'ence',
- Read upRead up
- Exclude checks
TODO 'ence', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
'er',
- Read upRead up
- Exclude checks
TODO 'er', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
term[-3] not in self._vowels
- Read upRead up
- Exclude checks
TODO term[-3] not in self._vowels ^ |
Wrong hanging indentation before block (add 4 spaces). Open
'andet',
- Read upRead up
- Exclude checks
TODO 'andet', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
or (word[-1] == 's' and word[-2] in self._st_ending)
- Read upRead up
- Exclude checks
TODO or (word[-1] == 's' and word[-2] in self.stending) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
word[-2:] in {'er', 'en'}
- Read upRead up
- Exclude checks
TODO word[-2:] in {'er', 'en'} ^ |
Redefining name 'data_path' from outer scope (line 52) Open
data_path: Optional[str] = None,
- Read upRead up
- Exclude checks
Used when a variable's name hides a name defined in the outer scope.
Parameters differ from overridden 'encode' method Open
def encode(self, lname: 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.
Wrong hanging indentation before block (add 4 spaces). Open
self,
- Read upRead up
- Exclude checks
TODO self, ^ |