maduck/GoWDiscordTeamBot

View on GitHub
translations.py

Summary

Maintainability
A
0 mins
Test Coverage

Either all return statements in a function should return an expression, or none of them should.
Open

    def __enter__(self):
Severity: Info
Found in translations.py by pylint

According to PEP8, if any return statement returns an expression, any return statements where no value is returned should explicitly state this as return None, and an explicit return statement should be present at the end of the function (if reachable)

Unable to import 'humanize'
Open

import humanize
Severity: Critical
Found in translations.py by pylint

Used when pylint has been unable to import a module.

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...).

Missing class docstring
Open

class HumanizeTranslator:
Severity: Info
Found in translations.py by pylint

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

Missing class docstring
Open

class Translations:
Severity: Info
Found in translations.py by pylint

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

Missing module docstring
Open

import json
Severity: Info
Found in translations.py by pylint

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

Missing function or method docstring
Open

    def pluralize(text: str, plural: bool):
Severity: Info
Found in translations.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 get(self, key, lang='', default=None, plural=False):
Severity: Info
Found in translations.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