ks00908/doot-doot

View on GitHub

Showing 130 of 130 total issues

Line too long (110 > 79 characters)
Open

            url="https://cdn.discordapp.com/avatars/593170973193273344/0a143cd8cfa9077570ebef54f097c882.webp")
Severity: Minor
Found in doot-doot/cogs/Basics.py by pep8

Limit all lines to a maximum of 79 characters.

There are still many devices around that are limited to 80 character
lines; plus, limiting windows to 80 characters makes it possible to
have several windows side-by-side.  The default wrapping on such
devices looks ugly.  Therefore, please limit all lines to a maximum
of 79 characters. For flowing long blocks of text (docstrings or
comments), limiting the length to 72 characters is recommended.

Reports error E501.

Indentation is not a multiple of 4
Open

         if len(content) < 120:
Severity: Minor
Found in doot-doot/cogs/Basics.py by pep8

Use indent_size (PEP8 says 4) spaces per indentation level.

For really old code that you don't want to mess up, you can continue
to use 8-space tabs.

Okay: a = 1
Okay: if a == 0:\n    a = 1
E111:   a = 1
E114:   # a = 1

Okay: for item in items:\n    pass
E112: for item in items:\npass
E115: for item in items:\n# Hi\n    pass

Okay: a = 1\nb = 2
E113: a = 1\n    b = 2
E116: a = 1\n    # b = 2

Line too long (81 > 79 characters)
Open

             await ctx.send("Presence sucesfully changed to\n ```"+content+"```")
Severity: Minor
Found in doot-doot/cogs/Basics.py by pep8

Limit all lines to a maximum of 79 characters.

There are still many devices around that are limited to 80 character
lines; plus, limiting windows to 80 characters makes it possible to
have several windows side-by-side.  The default wrapping on such
devices looks ugly.  Therefore, please limit all lines to a maximum
of 79 characters. For flowing long blocks of text (docstrings or
comments), limiting the length to 72 characters is recommended.

Reports error E501.

Expected 2 blank lines, found 1
Open

class Youtube(commands.Cog):
Severity: Minor
Found in doot-doot/cogs/youtube.py by pep8

Separate top-level function and class definitions with two blank lines.

Method definitions inside a class are separated by a single blank
line.

Extra blank lines may be used (sparingly) to separate groups of
related functions.  Blank lines may be omitted between a bunch of
related one-liners (e.g. a set of dummy implementations).

Use blank lines in functions, sparingly, to indicate logical
sections.

Okay: def a():\n    pass\n\n\ndef b():\n    pass
Okay: def a():\n    pass\n\n\nasync def b():\n    pass
Okay: def a():\n    pass\n\n\n# Foo\n# Bar\n\ndef b():\n    pass
Okay: default = 1\nfoo = 1
Okay: classify = 1\nfoo = 1

E301: class Foo:\n    b = 0\n    def bar():\n        pass
E302: def a():\n    pass\n\ndef b(n):\n    pass
E302: def a():\n    pass\n\nasync def b(n):\n    pass
E303: def a():\n    pass\n\n\n\ndef b(n):\n    pass
E303: def a():\n\n\n\n    pass
E304: @decorator\n\ndef a():\n    pass
E305: def a():\n    pass\na()
E306: def a():\n    def b():\n        pass\n    def c():\n        pass

Line too long (105 > 79 characters)
Open

        if not hasattr(bot, 'lavalink'):  # This ensures the client isn't overwritten during cog reloads.
Severity: Minor
Found in doot-doot/cogs/youtube.py by pep8

Limit all lines to a maximum of 79 characters.

There are still many devices around that are limited to 80 character
lines; plus, limiting windows to 80 characters makes it possible to
have several windows side-by-side.  The default wrapping on such
devices looks ugly.  Therefore, please limit all lines to a maximum
of 79 characters. For flowing long blocks of text (docstrings or
comments), limiting the length to 72 characters is recommended.

Reports error E501.

No newline at end of file
Open

    bot.add_cog(Youtube(bot))
Severity: Minor
Found in doot-doot/cogs/youtube.py by pep8

Trailing blank lines are superfluous.

Okay: spam(1)
W391: spam(1)\n

However the last line should end with a new line (warning W292).

Line too long (92 > 79 characters)
Open

with open("./utils/Fr13nd5sh1p-assets/lovely_messages.json", "r", encoding="utf-8") as file:
Severity: Minor
Found in doot-doot/utils/Fr13nd5h1p.py by pep8

Limit all lines to a maximum of 79 characters.

There are still many devices around that are limited to 80 character
lines; plus, limiting windows to 80 characters makes it possible to
have several windows side-by-side.  The default wrapping on such
devices looks ugly.  Therefore, please limit all lines to a maximum
of 79 characters. For flowing long blocks of text (docstrings or
comments), limiting the length to 72 characters is recommended.

Reports error E501.

Standard pseudo-random generators are not suitable for security/cryptographic purposes.
Open

        chosen_msg = random.choice(lovely_jubbly_content)
Severity: Info
Found in doot-doot/utils/Fr13nd5h1p.py by bandit

Standard pseudo-random generators are not suitable for security/cryptographic purposes.
Open

        chosen_msg = random.choice(lovely_jubbly_content)
Severity: Info
Found in doot-doot/utils/pat.py by bandit

Standard pseudo-random generators are not suitable for security/cryptographic purposes.
Open

    random_chance = random.randint(1, 100)
Severity: Info
Found in doot-doot/cogs/Airhorn.py by bandit
Severity
Category
Status
Source
Language