maduck/GoWDiscordTeamBot

View on GitHub

Showing 281 of 281 total issues

Line too long (144/100)
Open

                skip_costs = f'{_("[SKIP_TASK]", self.data["lang"])}: {self.data["task_skip_costs"][category]} {_("[GEMS]", self.data["lang"])}'
Severity: Info
Found in graphic_campaign_preview.py by pylint

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

Missing class docstring
Open

class GameAssets:
Severity: Info
Found in game_assets.py by pylint

Used when a class has no docstring.Even an empty class must have a docstring.

Unable to import 'requests'
Open

import requests
Severity: Critical
Found in graphic_base_preview.py by pylint

Used when pylint has been unable to import a module.

Missing class docstring
Open

class BasePreview:
Severity: Info
Found in graphic_base_preview.py by pylint

Used when a class has no docstring.Even an empty class must have a docstring.

Variable name x doesn't conform to snake_case naming style
Open

            x = left + width
Severity: Info
Found in graphic_soulforge_preview.py by pylint

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

Missing function or method docstring
Open

    def path(filename):
Severity: Info
Found in game_assets.py by pylint

Used when a function or method has no docstring.Some special methods like init do not require a docstring.

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 function or method docstring
Open

async def task_check_for_data_updates(discord_client):
Severity: Info
Found in bot_tasks.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 (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.

invalid syntax (<unknown>, line 82)</unknown>
Open

        if ban := Ban.get(guild.id):
Severity: Critical
Found in bot.py by pylint

Used when a syntax error is raised for a module.

Missing function or method docstring
Open

    def extract_requirements(self) -> Mapping[str, str]:
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.

Line too long (112/100)
Open

            e.add_field(name='Error', value='You need to be server owner or administrator to use this command.')
Severity: Info
Found in discord_wrappers.py by pylint

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

Missing function or method docstring
Open

    def load(filename):
Severity: Info
Found in game_assets.py by pylint

Used when a function or method has no docstring.Some special methods like init do not require a docstring.

Unable to import 'wand.image'
Open

from wand.image import Image
Severity: Critical
Found in graphic_base_preview.py by pylint

Used when pylint has been unable to import a module.

Variable name y doesn't conform to snake_case naming style
Open

            y = kingdom_logo.height + int(1.5 * base_font_size)
Severity: Info
Found in graphic_base_preview.py by pylint

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

Variable name r doesn't conform to snake_case naming style
Open

        r = requests.get(url)
Severity: Info
Found in graphic_base_preview.py by pylint

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

Missing function or method docstring
Open

    def get_box_coordinates(self, box_number):
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.

Missing function or method docstring
Open

    def render_affixes(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.

Too many statements (63/50)
Open

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

Used when a function or method has too many statements. You should then split it in smaller functions / methods.

Cannot import 'search' due to syntax error 'invalid syntax (<unknown>, line 108)'</unknown>
Open

from search import _
Severity: Critical
Found in graphic_campaign_preview.py by pylint

Used when a syntax error is raised for a module.

Severity
Category
Status
Source
Language