jenkinsci/hpe-application-automation-tools-plugin

View on GitHub

Showing 95 of 717 total issues

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

    Consider simplifying this complex logical expression.
    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)

      Consider simplifying this complex logical expression.
      Open

                      if (ev?.data == "mcCloseWizard") {
                          await a.populateAppAndDevice(baseUrl, o.userName, o.password, o.tenantId, o.execToken, o.authType, o.useProxyAuth, o.proxyAddress, o.proxyUserName, o.proxyPassword, jobId, async (app) => {
                              let jobInfo = app.responseObject();
                              let deviceId = "", OS = "", manufacturerAndModel = "", targetLab = "";
                              if (jobInfo['deviceJSON']) {
      Severity: Major
      Found in src/main/webapp/configure.js - About 1 hr to fix

        Consider simplifying this complex logical expression.
        Open

                    if (mc.HostAddress.IsNullOrEmpty() ||
                        (mc.MobileAuthType == AuthType.UsernamePassword && mc.UserName.IsNullOrEmpty() && mc.Password.IsNullOrEmpty()) ||
                        (mc.MobileAuthType == AuthType.AuthToken && mc.ExecToken.IsNullOrEmpty()) ||
                        string.IsNullOrEmpty(mc.HostPort))
                        return null;
        Severity: Major
        Found in HpToolsLauncher/ParallelRunner/ParallelRunnerEnvironmentUtil.cs - About 1 hr to fix

          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

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

              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 (scmPluginHandler != null) {
                                            return scmPluginHandler.getSharedCheckOutDirectory(j);
                                        }

                  Avoid deeply nested control flow statements.
                  Open

                                if (property instanceof Mailer.UserProperty) {
                                  userEmail = ((Mailer.UserProperty) property).getAddress();
                                }

                    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 (!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

                                                            default:
                                                                break;
                        Severity: Major
                        Found in LRAnalysisLauncher/Program.cs - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                                          default:
                                                              throw new ArgumentException(
                                                                           "Malformed \\uxxxx encoding.");
                          Severity: Major
                          Found in HpToolsLauncher/JavaProperties/JavaProperties.cs - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                            default:
                                                                throw new ArgumentException(
                                                                             "Malformed \\uxxxx encoding.");
                            Severity: Major
                            Found in HpToolsLauncher/Interfaces/JavaProperties/JavaProperties.cs - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                      if (property instanceof Mailer.UserProperty) {
                                                          userEmail = ((Mailer.UserProperty) property).getAddress();
                                                      }

                                Avoid deeply nested control flow statements.
                                Open

                                                        if(!StringUtils.isNullOrEmpty(almUsername) || !StringUtils.isNullOrEmpty(almClientID)) {
                                                            listener.getLogger().println("Migrating credentials from task " + job.getDisplayName());
                                
                                                            for (AlmServerSettingsModel model : models) {
                                                                if (model.getAlmServerName().equals(almBuilder.getAlmServerName())) {

                                  Avoid deeply nested control flow statements.
                                  Open

                                                                      case SlaRuleStatus.NoData:
                                                                          noData++;
                                                                          break;
                                  Severity: Major
                                  Found in LRAnalysisLauncher/Program.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 (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/Interfaces/JavaProperties/JavaProperties.cs - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language