maduck/GoWDiscordTeamBot

View on GitHub
graphic_campaign_preview.py

Summary

Maintainability
A
0 mins
Test Coverage

Too many local variables (18/15)
Open

    def render_team(self):
Severity: Info
Found in graphic_campaign_preview.py by pylint

Used when a function or method has too many local variables.

Too many local variables (18/15)
Open

    def render_tasks(self):
Severity: Info
Found in graphic_campaign_preview.py by pylint

Used when a function or method has too many local variables.

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.

Unable to import 'wand.drawing'
Open

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

Used when pylint has been unable to import a module.

Useless super delegation in method '__init__'
Open

    def __init__(self, data):
Severity: Minor
Found in graphic_campaign_preview.py by pylint

Used whenever we can detect that an overridden method is useless, relying on super() delegation to do the same thing as another method from the MRO.

Unable to import 'wand.color'
Open

from wand.color import Color
Severity: Critical
Found in graphic_campaign_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 += box_height
Severity: Info
Found in graphic_campaign_preview.py by pylint

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

Missing module docstring
Open

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

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

Missing function or method docstring
Open

    def render_tasks(self):
Severity: Info
Found in graphic_campaign_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 y doesn't conform to snake_case naming style
Open

        y = 350
Severity: Info
Found in graphic_campaign_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 render_team(self):
Severity: Info
Found in graphic_campaign_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_campaign_name(self):
Severity: Info
Found in graphic_campaign_preview.py by pylint

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

Missing class docstring
Open

class CampaignPreview(BasePreview):
Severity: Info
Found in graphic_campaign_preview.py by pylint

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

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.

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

        y = 500
Severity: Info
Found in graphic_campaign_preview.py by pylint

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

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

        x = self.img.width - width - 25
Severity: Info
Found in graphic_campaign_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 save_image(self):
Severity: Info
Found in graphic_campaign_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_all(result):
Severity: Info
Found in graphic_campaign_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 x doesn't conform to snake_case naming style
Open

        x = 50 if self.data['team'] else padding
Severity: Info
Found in graphic_campaign_preview.py by pylint

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

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

            x = 50
Severity: Info
Found in graphic_campaign_preview.py by pylint

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

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

            y = self.img.height - 60
Severity: Info
Found in graphic_campaign_preview.py by pylint

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

There are no issues that match your filters.

Category
Status