maduck/GoWDiscordTeamBot

View on GitHub
bot_tasks.py

Summary

Maintainability
A
0 mins
Test Coverage

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.

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.

Catching too general exception Exception
Open

            except Exception as e:
Severity: Minor
Found in bot_tasks.py by pylint

Used when an except catches a too general exception, possibly burying unrelated errors.

Cannot import 'jobs.status_reporter' due to syntax error 'invalid syntax (<unknown>, line 49)'</unknown>
Open

from jobs.status_reporter import StatusReporter
Severity: Critical
Found in bot_tasks.py by pylint

Used when a syntax error is raised for a module.

No name 'status_reporter' in module 'jobs'
Open

from jobs.status_reporter import StatusReporter
Severity: Critical
Found in bot_tasks.py by pylint

Used when a name cannot be found in a module.

Catching too general exception Exception
Open

        except Exception as e:
Severity: Minor
Found in bot_tasks.py by pylint

Used when an except catches a too general exception, possibly burying unrelated errors.

Line too long (103/100)
Open

        discord_client.pet_rescues = [rescue for rescue in discord_client.pet_rescues if rescue.active]
Severity: Info
Found in bot_tasks.py by pylint

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

Line too long (119/100)
Open

    filenames = LANG_FILES + ['World.json', 'User.json', 'Campaign.json', 'Soulforge.json', 'Event.json', 'Store.json']
Severity: Info
Found in bot_tasks.py by pylint

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

Missing module docstring
Open

import asyncio
Severity: Info
Found in bot_tasks.py by pylint

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

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.

Missing function or method docstring
Open

async def task_check_for_news(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.

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

        e = discord_client.views.render_pet_rescue(rescue)
Severity: Info
Found in bot_tasks.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

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.

Missing function or method docstring
Open

async def task_update_pet_rescues(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.

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

        except Exception as e:
Severity: Info
Found in bot_tasks.py by pylint

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

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

            except Exception as e:
Severity: Info
Found in bot_tasks.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

async def task_report_status(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.

There are no issues that match your filters.

Category
Status