iterative/dvc

View on GitHub

Showing 420 of 492 total issues

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

    def create(
Severity: Minor
Found in dvc/repo/stage.py - About 35 mins to fix

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

        def collect(
    Severity: Minor
    Found in dvc/repo/stage.py - About 35 mins to fix

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

      def _collect_configs(
      Severity: Minor
      Found in dvc/repo/params/show.py - About 35 mins to fix

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

        def _gather_metrics(repo, targets, rev, recursive, onerror=None):
        Severity: Minor
        Found in dvc/repo/metrics/show.py - About 35 mins to fix

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

              def make(
          Severity: Minor
          Found in dvc/testing/fixtures.py - About 35 mins to fix

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

                def test_import_dir(self, tmp_dir, dvc, workspace, stage_md5, dir_md5):
            Severity: Minor
            Found in dvc/testing/workspace_tests.py - About 35 mins to fix

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

                  def _fill_parts(self, scheme, host, user, port, path):
              Severity: Minor
              Found in dvc/testing/path_info.py - About 35 mins to fix

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

                def _dump_data(
                Severity: Minor
                Found in dvc/utils/serialize/_common.py - About 35 mins to fix

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

                  Severity: Minor
                  Found in dvc/commands/experiments/show.py - About 35 mins to fix

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

                        def merge_from(self, fs, item: str, wdir: str, overwrite=False):
                    Severity: Minor
                    Found in dvc/parsing/context.py - About 35 mins to fix

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

                          def resolve_str(
                      Severity: Minor
                      Found in dvc/parsing/context.py - About 35 mins to fix

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

                        def params_show(
                        Severity: Minor
                        Found in dvc/api/params.py - About 35 mins to fix

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

                              def ls(  # pylint: disable=arguments-differ
                          Severity: Minor
                          Found in dvc/fs/dvc.py - About 35 mins to fix

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

                                def __init__(
                            Severity: Minor
                            Found in dvc/fs/git.py - About 35 mins to fix

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

                              def str_interpolate(
                              Severity: Minor
                              Found in dvc/parsing/interpolate.py - About 35 mins to fix

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

                                    def resolve(
                                Severity: Minor
                                Found in dvc/parsing/context.py - About 35 mins to fix

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

                                      def __init__(
                                  Severity: Minor
                                  Found in dvc/parsing/__init__.py - About 35 mins to fix

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

                                        def transfer(
                                    Severity: Minor
                                    Found in dvc/output.py - About 35 mins to fix

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

                                          def __init__(
                                      Severity: Minor
                                      Found in dvc/parsing/__init__.py - About 35 mins to fix

                                        Function make_prompt has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                        Open

                                            def make_prompt(self, default):
                                                prompt = self.prompt.copy()
                                                prompt.end = ""
                                        
                                                parts = []
                                        Severity: Minor
                                        Found in dvc/ui/prompt.py - About 35 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

                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language