borgbackup/borg

View on GitHub

Showing 507 of 611 total issues

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

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

                def recreate(self, archive_id, target_name, delete_original, comment=None):
            Severity: Minor
            Found in src/borg/archive.py - About 35 mins to fix

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

                  def save(self, archive, target, comment=None, delete_original=True):
              Severity: Minor
              Found in src/borg/archive.py - About 35 mins to fix

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

                    def _delete(self, id, segment, offset, size):
                Severity: Minor
                Found in src/borg/legacyrepository.py - About 35 mins to fix

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

                      def __init__(self, path, limit, segments_per_dir, capacity=90):
                  Severity: Minor
                  Found in src/borg/legacyrepository.py - About 35 mins to fix

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

                        def __init__(self, *, key, cache, add_item, rechunkify):
                    Severity: Minor
                    Found in src/borg/archive.py - About 35 mins to fix

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

                          def process_dir_with_fd(self, *, path, fd, st, strip_prefix):
                      Severity: Minor
                      Found in src/borg/archive.py - About 35 mins to fix

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

                            def restore_attrs(self, path, item, symlink=False, fd=None):
                        Severity: Minor
                        Found in src/borg/archive.py - About 35 mins to fix

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

                              def open(self, path, exclusive, lock_wait=None, lock=True):
                          Severity: Minor
                          Found in src/borg/legacyrepository.py - About 35 mins to fix

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

                                def wrapper(self, args, repository, manifest, **kwargs):
                            Severity: Minor
                            Found in src/borg/archiver/_common.py - About 35 mins to fix

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

                                  def parse(
                              Severity: Minor
                              Found in src/borg/repoobj.py - About 35 mins to fix

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

                                    def test_flag_position_independence(self, parse_vars_from_line, position, flag, args_key, args_value):
                                Severity: Minor
                                Found in src/borg/testsuite/archiver/argparsing_test.py - About 35 mins to fix

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

                                  def process_chunks(repository, repo_objs, stats, recompress_ids, olevel):
                                  Severity: Minor
                                  Found in src/borg/archiver/repo_compress_cmd.py - About 35 mins to fix

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

                                        def test_cache_corruption(self, decrypted_cache: RepositoryCache, H1, H2, H3):
                                    Severity: Minor
                                    Found in src/borg/testsuite/remote_test.py - About 35 mins to fix

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

                                          def do_repo_create(self, args, repository, *, other_repository=None, other_manifest=None):
                                      Severity: Minor
                                      Found in src/borg/archiver/repo_create_cmd.py - About 35 mins to fix

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

                                            def parse(
                                        Severity: Minor
                                        Found in src/borg/repoobj.py - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language