maduck/GoWDiscordTeamBot

View on GitHub

Showing 280 of 280 total issues

Missing module docstring
Open

import io
Severity: Info
Found in graphic_map.py by pylint

Used when a module has no docstring.Empty modules do not require a docstring.

Missing function or method docstring
Open

    def id(self):
Severity: Info
Found in discord_fake_classes.py by pylint

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):
Severity: Info
Found in event_helpers.py by pylint

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>.+)$',
Severity: Info
Found in command_registry.py by pylint

Used when a line is longer than a given number of characters.

Wrong hanging indentation (remove 4 spaces).
Open

                    f'^{LANG_PATTERN}'
Severity: Info
Found in command_registry.py by pylint

TODO f'^{LANG_PATTERN}' | ^

Unable to import 'wand.drawing'
Open

from wand.drawing import Drawing
Severity: Critical
Found in graphic_map.py by pylint

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):
Severity: Info
Found in discord_fake_classes.py by pylint

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'))
Severity: Info
Found in bot_tasks.py by pylint

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
Severity: Info
Found in graphic_map.py by pylint

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
Severity: Critical
Found in bot_tasks.py by pylint

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
Severity: Critical
Found in bot_tasks.py by pylint

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,
Severity: Info
Found in graphic_base_preview.py by pylint

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:
Severity: Info
Found in translations.py by pylint

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
Severity: Critical
Found in graphic_soulforge_preview.py by pylint

Used when pylint has been unable to import a module.

Missing function or method docstring
Open

    def save_image(self):
Severity: Info
Found in graphic_soulforge_preview.py by pylint

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)
Severity: Info
Found in discord_wrappers.py by pylint

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):
Severity: Critical
Found in graphic_base_preview.py by sonar-python

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
Severity: Critical
Found in bot_tasks.py by pylint

Used when a syntax error is raised for a module.

Missing class docstring
Open

class Configurations:
Severity: Info
Found in configurations.py by pylint

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:
Severity: Info
Found in configurations.py by pylint

Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).

Severity
Category
Status
Source
Language