jenkinsci/hpe-application-automation-tools-plugin

View on GitHub

Showing 95 of 716 total issues

Avoid deeply nested control flow statements.
Open

                                    case SlaRuleStatus.Failed:
                                        failed++;
                                        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 (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 (cleanupTest != null)
                                                        cleanupAndRerunTests.Add(cleanupTest);
        Severity: Major
        Found in HpToolsLauncher/Launcher.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

                                        if (!("testinstanceid".equals(name) && "AUTO".equals(getPcModel().getAutoTestInstanceID()))
                                                && !(("retrydelay".equals(name) && "NO_RETRY".equals(getPcModel().getRetry())) || getPcModel().getRetry().isEmpty())
                                                && !(("retryoccurrences".equals(name) && "NO_RETRY".equals(getPcModel().getRetry())) || getPcModel().getRetry().isEmpty())
                                        ) {
                                            if ("doCheckCredentialsId".equals(method.getName()) && "credentialsid".equals(name) && "getCredentialsId".equals(modelMethodName)

              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 (parentName.contains(testPath)) {
                                            falsePositive.add(item);
                                            break;
                                        }

                  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

                                                  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

                        Avoid deeply nested control flow statements.
                        Open

                                                        case '0':
                                                        case '1':
                                                        case '2':
                                                        case '3':
                                                        case '4':
                        Severity: Major
                        Found in HpToolsLauncher/Interfaces/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

                            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

                              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

                                Avoid too many return statements within this method.
                                Open

                                            return;

                                  Avoid too many return statements within this method.
                                  Open

                                              return result;
                                  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

                                      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 ans;
                                        Severity: Major
                                        Found in HpToolsLauncher/Utils/Helper.cs - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language