jenkinsci/hpe-application-automation-tools-plugin

View on GitHub

Showing 716 of 716 total issues

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

                                            case SlaRuleStatus.NoData:
                                                noData++;
                                                break;
        Severity: Major
        Found in LRAnalysisLauncher/Program.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

                                                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

                                      Identical blocks of code found in 6 locations. Consider refactoring.
                                      Open

                                                                  if (params.data.hasOwnProperty("q") && params.data.q !== undefined) {term = params.data.q;}
                                      Severity: Major
                                      Found in src/main/resources/lib/octane/configure.js and 5 other locations - About 45 mins to fix
                                      src/main/resources/lib/octane/configure.js on lines 82..82
                                      src/main/resources/lib/octane/configure.js on lines 1147..1147
                                      src/main/resources/lib/octane/configure.js on lines 1174..1174
                                      src/main/resources/lib/octane/configure.js on lines 1196..1196
                                      src/main/resources/lib/octane/configure.js on lines 1219..1219

                                      Duplicated Code

                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                      Tuning

                                      This issue has a mass of 50.

                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                      Refactorings

                                      Further Reading

                                      Identical blocks of code found in 6 locations. Consider refactoring.
                                      Open

                                                                  if (params.data.hasOwnProperty("q") && params.data.q !== undefined) {term = params.data.q;}
                                      Severity: Major
                                      Found in src/main/resources/lib/octane/configure.js and 5 other locations - About 45 mins to fix
                                      src/main/resources/lib/octane/configure.js on lines 1128..1128
                                      src/main/resources/lib/octane/configure.js on lines 1147..1147
                                      src/main/resources/lib/octane/configure.js on lines 1174..1174
                                      src/main/resources/lib/octane/configure.js on lines 1196..1196
                                      src/main/resources/lib/octane/configure.js on lines 1219..1219

                                      Duplicated Code

                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                      Tuning

                                      This issue has a mass of 50.

                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                      Refactorings

                                      Further Reading

                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language