Showing 280 of 280 total issues
Missing module docstring Open
import io
- Read upRead up
- Exclude checks
Used when a module has no docstring.Empty modules do not require a docstring.
Missing function or method docstring Open
def id(self):
- Read upRead up
- Exclude checks
Used when a function or method has no docstring.Some special methods like init do not require a docstring.
Missing function or method docstring Open
def roles_translation(roles):
- Read upRead up
- Exclude checks
Used when a function or method has no docstring.Some special methods like init do not require a docstring.
Line too long (107/100) Open
f'{DEFAULT_PATTERN}towerconfig (?P<category>(rooms|scrolls)) (?P<field>[^ ]+) (?P<values>.+)$',
- Read upRead up
- Exclude checks
Used when a line is longer than a given number of characters.
Wrong hanging indentation (remove 4 spaces). Open
f'^{LANG_PATTERN}'
- Read upRead up
- Exclude checks
TODO f'^{LANG_PATTERN}' | ^
Unable to import 'wand.drawing' Open
from wand.drawing import Drawing
- Read upRead up
- Exclude checks
Used when pylint has been unable to import a module.
Attribute name id
doesn't conform to snake_case naming style Open
def id(self):
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
Line too long (113/100) Open
modified = now - modification_time <= datetime.timedelta(seconds=CONFIG.get('file_update_check_seconds'))
- Read upRead up
- Exclude checks
Used when a line is longer than a given number of characters.
Variable name t
doesn't conform to snake_case naming style Open
t, t2 = x / 2048, y / 2048
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
Unable to import 'discord.ext' Open
from discord.ext import tasks
- Read upRead up
- Exclude checks
Used when pylint has been unable to import a module.
Cannot import 'base_bot' due to syntax error 'invalid syntax (<unknown>, line 222)'</unknown> Open
from base_bot import log
- Read upRead up
- Exclude checks
Used when a syntax error is raised for a module.
Line too long (103/100) Open
kingdom = word_wrap(self.img, draw, self.data['alternate_kingdom'], kingdom_width + 10,
- Read upRead up
- Exclude checks
Used when a line is longer than a given number of characters.
Variable name f
doesn't conform to snake_case naming style Open
with open(addon_filename, encoding='utf8') as f:
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
Unable to import 'wand.drawing' Open
from wand.drawing import Drawing
- Read upRead up
- Exclude checks
Used when pylint has been unable to import a module.
Missing function or method docstring Open
def save_image(self):
- Read upRead up
- Exclude checks
Used when a function or method has no docstring.Some special methods like init do not require a docstring.
Variable name e
doesn't conform to snake_case naming style Open
e = discord.Embed(title='Restricted Command', color=self.RED)
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
Refactor this function to reduce its Cognitive Complexity from 17 to the 15 allowed. Open
def word_wrap(image, draw, text, roi_width, roi_height):
- 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
Cannot import 'search' due to syntax error 'invalid syntax (<unknown>, line 108)'</unknown> Open
from search import TeamExpander, update_translations
- Read upRead up
- Exclude checks
Used when a syntax error is raised for a module.
Missing class docstring Open
class Configurations:
- Read upRead up
- Exclude checks
Used when a class has no docstring.Even an empty class must have a docstring.
Variable name f
doesn't conform to snake_case naming style Open
with open(self.DEFAULTS_FILE) as f:
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).