jenkinsci/hpe-application-automation-tools-plugin

View on GitHub
HpToolsLauncher/Runners/AlmTestSetsRunner.cs

Summary

Maintainability
B
6 hrs
Test Coverage

Consider simplifying this complex logical expression.
Open

            if (string.IsNullOrWhiteSpace(qcServerUrl)
                || (string.IsNullOrWhiteSpace(qcLogin) && !SSOEnabled)
                || string.IsNullOrWhiteSpace(qcDomain)
                || string.IsNullOrWhiteSpace(qcProject)
                || (SSOEnabled && (string.IsNullOrWhiteSpace(qcClientID)
Severity: Critical
Found in HpToolsLauncher/Runners/AlmTestSetsRunner.cs - About 1 hr to fix

    Avoid deeply nested control flow statements.
    Open

                                if (!tListIndexName.ToLower().Contains(filterByName.ToLower()) &&
                                !tListIndexTestName.ToLower().Contains(filterByName.ToLower()))
                                {
                                    testList.Remove(index);
    
    Severity: Major
    Found in HpToolsLauncher/Runners/AlmTestSetsRunner.cs - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                                      if (testIndex == -1)
                                      {
                                          Console.WriteLine("No test index exist for this test");
                                      }
      Severity: Major
      Found in HpToolsLauncher/Runners/AlmTestSetsRunner.cs - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                        if (folder != null)
                                            folderName = folder.Name.Replace(".", "_");
        Severity: Major
        Found in HpToolsLauncher/Runners/AlmTestSetsRunner.cs - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                          if (prevRunId == -1)
                                          {
                                              Console.WriteLine("No test runs exist for this test");
                                              continue;
                                          }
          Severity: Major
          Found in HpToolsLauncher/Runners/AlmTestSetsRunner.cs - About 45 mins to fix

            Avoid too many return statements within this method.
            Open

                        return runDesc;
            Severity: Major
            Found in HpToolsLauncher/Runners/AlmTestSetsRunner.cs - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                          return TestState.Unknown;
              Severity: Major
              Found in HpToolsLauncher/Runners/AlmTestSetsRunner.cs - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                return false;
                Severity: Major
                Found in HpToolsLauncher/Runners/AlmTestSetsRunner.cs - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                                  return null;
                  Severity: Major
                  Found in HpToolsLauncher/Runners/AlmTestSetsRunner.cs - About 30 mins to fix

                    There are no issues that match your filters.

                    Category
                    Status