jenkinsci/hpe-application-automation-tools-plugin

View on GitHub

Showing 95 of 716 total issues

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

                                    case '0':
                                    case '1':
                                    case '2':
                                    case '3':
                                    case '4':
    Severity: Major
    Found in HpToolsLauncher/JavaProperties/JavaProperties.cs - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                                  if (testSla == null) {
                                      listener.getLogger().println("no RunReport.xml file was created");
                                  } else {
                                      runReportList.add(testSla);
                                  }

        Avoid deeply nested control flow statements.
        Open

                                switch (buildStepName) {
                                    case "RunFromAlmBuilder":
                                        resFileParam = paramAction.getParameter("resultsFilename");
                                        if (resFileParam != null) {
                                            almResultNames.add(((StringParameterValue)resFileParam).getValue());

          Avoid deeply nested control flow statements.
          Open

                                          case 'a':
                                          case 'b':
                                          case 'c':
                                          case 'd':
                                          case 'e':
          Severity: Major
          Found in HpToolsLauncher/Interfaces/JavaProperties/JavaProperties.cs - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                    if (archiveFolder(reportFolder, testStatus, archivedFile, listener)) {
                                        zipFileNames.add(zipFileName);
                                    }

              Avoid deeply nested control flow statements.
              Open

                                                  case SlaRuleStatus.Passed:
                                                      passed++;
                                                      break;
              Severity: Major
              Found in LRAnalysisLauncher/Program.cs - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                                case 'a':
                                                case 'b':
                                                case 'c':
                                                case 'd':
                                                case 'e':
                Severity: Major
                Found in HpToolsLauncher/JavaProperties/JavaProperties.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 deeply nested control flow statements.
                    Open

                                                                if (cleanupTest != null)
                                                                    cleanupAndRerunTests.Add(cleanupTest);
                    Severity: Major
                    Found in HpToolsLauncher/Launcher.cs - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                                      case 'A':
                                                      case 'B':
                                                      case 'C':
                                                      case 'D':
                                                      case 'E':
                      Severity: Major
                      Found in HpToolsLauncher/JavaProperties/JavaProperties.cs - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                                if (scmPluginHandler != null) {
                                                    return scmPluginHandler.getSharedCheckOutDirectory(j);
                                                }

                          Avoid deeply nested control flow statements.
                          Open

                                                      if (werFaultProcesses.Length > 0)
                                                      {
                                                          //Console.WriteLine("Kill process of WerFault");
                                                          foreach (Process pf in werFaultProcesses)
                                                          {
                          Severity: Major
                          Found in HpToolsLauncher/TestRunners/PerformanceTestRunner.cs - About 45 mins to fix

                            Consider simplifying this complex logical expression.
                            Open

                                                            if ("doCheckCredentialsId".equals(method.getName()) && "credentialsid".equals(name) && "getCredentialsId".equals(modelMethodName)
                                                                    || "doCheckCredentialsProxyId".equals(method.getName()) && "credentialsproxyid".equals(name) && "getCredentialsProxyId".equals(modelMethodName)
                                                            )
                                                                obj = method.invoke(getDescriptor(), null, null, modelMethod.invoke(getPcModel()));
                                                            else

                              Consider simplifying this complex logical expression.
                              Open

                                                  if(fileWrapper.isSvnDirType()||
                                                          UftTestDiscoveryUtils.isTestMainFilePath(fileWrapper.getPath())||
                                                          (TestingToolType.UFT.equals(testingToolType) && UftTestDiscoveryUtils.isUftDataTableFile(fileWrapper.getPath())) ||
                                                          (TestingToolType.MBT.equals(testingToolType) && UftTestDiscoveryUtils.isUftActionFile(fileWrapper.getPath()))){
                                                      //add to list

                                Avoid too many return statements within this method.
                                Open

                                            return Bad;

                                  Avoid too many return statements within this method.
                                  Open

                                          return 0;

                                    Avoid too many return statements within this method.
                                    Open

                                                return FormValidation.error("Error opening a connection to the ALM server");

                                      Avoid too many return statements within this method.
                                      Open

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

                                        Avoid too many return statements within this method.
                                        Open

                                                            return false;
                                        Severity: Major
                                        Found in HpToolsLauncher/TestRunners/PerformanceTestRunner.cs - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language