iterative/dvc

View on GitHub

Showing 517 of 578 total issues

Function update_import has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

def update_import(
Severity: Major
Found in dvc/stage/imports.py - About 50 mins to fix

    Function du has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    def du(
    Severity: Major
    Found in dvc/repo/du.py - About 50 mins to fix

      Function rich_table has 7 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      def rich_table(
      Severity: Major
      Found in dvc/ui/table.py - About 50 mins to fix

        Function _build_rows has 7 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        def _build_rows(
        Severity: Major
        Found in dvc/repo/experiments/show.py - About 50 mins to fix

          Function _reproduce has 7 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          def _reproduce(
          Severity: Major
          Found in dvc/repo/reproduce.py - About 50 mins to fix

            Function build_data_index has 7 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            def build_data_index(  # noqa: C901, PLR0912
            Severity: Major
            Found in dvc/repo/index.py - About 50 mins to fix

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

              def save(
              Severity: Major
              Found in dvc/repo/experiments/save.py - About 50 mins to fix

                Function used_objs has 7 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    def used_objs(
                Severity: Major
                Found in dvc/repo/index.py - About 50 mins to fix

                  Function get_url has 7 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  def get_url(url, out=None, *, fs_config=None, jobs=None, force=False, config=None):
                  Severity: Major
                  Found in dvc/repo/get_url.py - About 50 mins to fix

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

                        def __init__(
                    Severity: Major
                    Found in dvc/config.py - About 50 mins to fix

                      Function checkout has 7 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          def checkout(
                      Severity: Major
                      Found in dvc/output.py - About 50 mins to fix

                        Function show_metrics has 7 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                        def show_metrics(
                        Severity: Major
                        Found in dvc/compare.py - About 50 mins to fix

                          Function add_logging_level has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                          Open

                          def add_logging_level(level_name, level_num, method_name=None):
                              """
                              Adds a new logging level to the `logging` module and the
                              currently configured logging class.
                          
                          
                          Severity: Minor
                          Found in dvc/logger.py - About 45 mins to fix

                          Cognitive Complexity

                          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                          A method's cognitive complexity is based on a few simple rules:

                          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                          • Code is considered more complex for each "break in the linear flow of the code"
                          • Code is considered more complex when "flow breaking structures are nested"

                          Further reading

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

                              def _repro_dvc(
                          Severity: Minor
                          Found in dvc/repo/experiments/executor/base.py - About 45 mins to fix

                            Function save_outs has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                            Open

                                def save_outs(self, allow_missing: bool = False):
                                    from dvc.output import OutputDoesNotExistError
                            
                                    old_versioned_outs = self.get_versioned_outs()
                                    for out in self.outs:
                            Severity: Minor
                            Found in dvc/stage/__init__.py - About 45 mins to fix

                            Cognitive Complexity

                            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                            A method's cognitive complexity is based on a few simple rules:

                            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                            • Code is considered more complex for each "break in the linear flow of the code"
                            • Code is considered more complex when "flow breaking structures are nested"

                            Further reading

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

                            def rwlock(tmp_dir, fs, cmd, read, write, hardlink):
                            Severity: Minor
                            Found in dvc/rwlock.py - About 45 mins to fix

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

                              def diff(repo, *args, a_rev=None, b_rev=None, param_deps=False, **kwargs):
                              Severity: Minor
                              Found in dvc/repo/experiments/diff.py - About 45 mins to fix

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

                                    def init_git(
                                Severity: Minor
                                Found in dvc/repo/experiments/executor/base.py - About 45 mins to fix

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

                                  def _check_blockers(tmp_dir, lock, info, *, mode, waiters):  # noqa: C901, PLR0912
                                  Severity: Minor
                                  Found in dvc/rwlock.py - About 45 mins to fix

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

                                        def _stash_exp(
                                    Severity: Minor
                                    Found in dvc/repo/experiments/queue/base.py - About 45 mins to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language