borgbackup/borg

View on GitHub

Showing 611 of 611 total issues

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

def sizeof_fmt_iec(num, suffix="B", sep="", precision=2, sign=False):
Severity: Minor
Found in src/borg/helpers/parseformat.py - About 35 mins to fix

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

    def sizeof_fmt_decimal(num, suffix="B", sep="", precision=2, sign=False):
    Severity: Minor
    Found in src/borg/helpers/parseformat.py - About 35 mins to fix

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

      def acl_get(path, item, st, numeric_ids=False, fd=None):
      Severity: Minor
      Found in src/borg/platform/base.py - About 35 mins to fix

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

        def mkstemp_mode(suffix=None, prefix=None, dir=None, text=False, mode=0o600):
        Severity: Minor
        Found in src/borg/helpers/fs.py - About 35 mins to fix

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

          def setxattr(path, name, value, *, follow_symlinks=False):
          Severity: Minor
          Found in src/borg/platform/base.py - About 35 mins to fix

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

                def __init__(self, key, repository, item_keys=None, ro_cls=RepoObj):
            Severity: Minor
            Found in src/borg/manifest.py - About 35 mins to fix

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

              def os_stat(*, path=None, parent_fd=None, name=None, follow_symlinks=False):
              Severity: Minor
              Found in src/borg/helpers/fs.py - About 35 mins to fix

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

                    def save(self, target, passphrase, algorithm, create=False):
                Severity: Minor
                Found in src/borg/crypto/key.py - About 35 mins to fix

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

                      def __call__(self, parser, namespace, values, option_string=None):
                  Severity: Minor
                  Found in src/borg/helpers/parseformat.py - About 35 mins to fix

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

                    def filter_archives_by_date(archives, older=None, newer=None, oldest=None, newest=None):
                    Severity: Minor
                    Found in src/borg/manifest.py - About 35 mins to fix

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

                      def clean_lines(lines, lstrip=None, rstrip=None, remove_empty=True, remove_comments=True):
                      Severity: Minor
                      Found in src/borg/helpers/parseformat.py - About 35 mins to fix

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

                            def __call__(self, parser, namespace, path, option_string=None):
                        Severity: Minor
                        Found in src/borg/helpers/parseformat.py - About 35 mins to fix

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

                              def __init__(self, restrict_to_paths, restrict_to_repositories, append_only, storage_quota, use_socket):
                          Severity: Minor
                          Found in src/borg/remote.py - About 35 mins to fix

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

                                def init_from_given_data(self, *, crypt_key, id_key, chunk_seed):
                            Severity: Minor
                            Found in src/borg/crypto/key.py - About 35 mins to fix

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

                                  def save(self, target, passphrase, algorithm, create=False):
                              Severity: Minor
                              Found in src/borg/crypto/key.py - About 35 mins to fix

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

                                    def create(self, name, id, ts, *, overwrite=False):
                                Severity: Minor
                                Found in src/borg/manifest.py - About 35 mins to fix

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

                                  def packb(o, *, use_bin_type=USE_BIN_TYPE, unicode_errors=UNICODE_ERRORS, **kwargs):
                                  Severity: Minor
                                  Found in src/borg/helpers/msgpack.py - About 35 mins to fix

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

                                        def __init__(self, total=0, step=5, start=0, msg="%3.0f%%", msgid=None):
                                    Severity: Minor
                                    Found in src/borg/helpers/progress.py - About 35 mins to fix

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

                                          def create_helper(self, path, st, status=None, hardlinkable=True, strip_prefix=None):
                                      Severity: Minor
                                      Found in src/borg/archive.py - About 35 mins to fix

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

                                            def process_file(self, *, tarinfo, status, type, tar):
                                        Severity: Minor
                                        Found in src/borg/archive.py - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language