AngellusMortis/game_server_manager

View on GitHub

Showing 74 of 74 total issues

Function start has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

    def start(
Severity: Minor
Found in gs_manager/servers/base.py - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                            if not os.path.isfile(mod_file) or (
                                workshop_item
                                not in manifest["AppWorkshop"][
                                    "WorkshopItemsInstalled"
                                ]
    Severity: Major
    Found in gs_manager/servers/specific/ark.py - About 45 mins to fix

      Function _wait has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def _wait(
      Severity: Minor
      Found in gs_manager/servers/base.py - About 45 mins to fix

        Function enable has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def enable(
        Severity: Minor
        Found in gs_manager/servers/specific/minecraft.py - About 35 mins to fix

          Function say has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              def say(self, message, do_print=True, *args, **kwargs) -> int:
          Severity: Minor
          Found in gs_manager/servers/generic/screen.py - About 35 mins to fix

            Function command has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                def command(
            Severity: Minor
            Found in gs_manager/servers/generic/screen.py - About 35 mins to fix

              Function command has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  def command(
              Severity: Minor
              Found in gs_manager/servers/specific/minecraft.py - About 35 mins to fix

                Function edit has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    def edit(self, force: bool, edit_path: str, *args, **kwargs) -> int:
                Severity: Minor
                Found in gs_manager/servers/base.py - About 35 mins to fix

                  Function tail has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      def tail(self, follow: bool, num: int, *args, **kwargs) -> int:
                  Severity: Minor
                  Found in gs_manager/servers/base.py - About 35 mins to fix

                    Module level import not at top of file
                    Open

                    import gs_manager
                    Severity: Minor
                    Found in docs/conf.py by pep8

                    Place imports at the top of the file.

                    Always put imports at the top of the file, just after any module
                    comments and docstrings, and before module globals and constants.
                    
                    Okay: import os
                    Okay: # this is a comment\nimport os
                    Okay: '''this is a module docstring'''\nimport os
                    Okay: r'''this is a module docstring'''\nimport os
                    Okay:
                    try:\n\timport x\nexcept ImportError:\n\tpass\nelse:\n\tpass\nimport y
                    Okay:
                    try:\n\timport x\nexcept ImportError:\n\tpass\nfinally:\n\tpass\nimport y
                    E402: a=1\nimport os
                    E402: 'One string'\n"Two string"\nimport os
                    E402: a=1\nfrom sys import x
                    
                    Okay: if x:\n    import os

                    Block comment should start with '# '
                    Open

                        #'papersize': 'letterpaper',
                    Severity: Minor
                    Found in docs/conf.py by pep8

                    Separate inline comments by at least two spaces.

                    An inline comment is a comment on the same line as a statement.
                    Inline comments should be separated by at least two spaces from the
                    statement. They should start with a # and a single space.
                    
                    Each line of a block comment starts with a # and a single space
                    (unless it is indented text inside the comment).
                    
                    Okay: x = x + 1  # Increment x
                    Okay: x = x + 1    # Increment x
                    Okay: # Block comment
                    E261: x = x + 1 # Increment x
                    E262: x = x + 1  #Increment x
                    E262: x = x + 1  #  Increment x
                    E265: #Block comment
                    E266: ### Block comment

                    Block comment should start with '# '
                    Open

                        #'preamble': '',
                    Severity: Minor
                    Found in docs/conf.py by pep8

                    Separate inline comments by at least two spaces.

                    An inline comment is a comment on the same line as a statement.
                    Inline comments should be separated by at least two spaces from the
                    statement. They should start with a # and a single space.
                    
                    Each line of a block comment starts with a # and a single space
                    (unless it is indented text inside the comment).
                    
                    Okay: x = x + 1  # Increment x
                    Okay: x = x + 1    # Increment x
                    Okay: # Block comment
                    E261: x = x + 1 # Increment x
                    E262: x = x + 1  #Increment x
                    E262: x = x + 1  #  Increment x
                    E265: #Block comment
                    E266: ### Block comment

                    Line too long (85 > 79 characters)
                    Open

                                target=surpress(callback_wrapper), args=args, kwargs=kwargs, daemon=True,
                    Severity: Minor
                    Found in gs_manager/decorators.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.

                    Block comment should start with '# '
                    Open

                        #'pointsize': '10pt',
                    Severity: Minor
                    Found in docs/conf.py by pep8

                    Separate inline comments by at least two spaces.

                    An inline comment is a comment on the same line as a statement.
                    Inline comments should be separated by at least two spaces from the
                    statement. They should start with a # and a single space.
                    
                    Each line of a block comment starts with a # and a single space
                    (unless it is indented text inside the comment).
                    
                    Okay: x = x + 1  # Increment x
                    Okay: x = x + 1    # Increment x
                    Okay: # Block comment
                    E261: x = x + 1 # Increment x
                    E262: x = x + 1  #Increment x
                    E262: x = x + 1  #  Increment x
                    E265: #Block comment
                    E266: ### Block comment
                    Severity
                    Category
                    Status
                    Source
                    Language