Showing 95 of 716 total issues
Avoid deeply nested control flow statements. Open
Open
if (!tListIndexName.ToLower().Contains(filterByName.ToLower()) &&
!tListIndexTestName.ToLower().Contains(filterByName.ToLower()))
{
testList.Remove(index);
Avoid deeply nested control flow statements. Open
Open
case '0':
case '1':
case '2':
case '3':
case '4':
Avoid deeply nested control flow statements. Open
Open
if (testSla == null) {
listener.getLogger().println("no RunReport.xml file was created");
} else {
runReportList.add(testSla);
}
Avoid deeply nested control flow statements. Open
Open
switch (buildStepName) {
case "RunFromAlmBuilder":
resFileParam = paramAction.getParameter("resultsFilename");
if (resFileParam != null) {
almResultNames.add(((StringParameterValue)resFileParam).getValue());
Avoid deeply nested control flow statements. Open
Open
case 'a':
case 'b':
case 'c':
case 'd':
case 'e':
Avoid deeply nested control flow statements. Open
Open
if (archiveFolder(reportFolder, testStatus, archivedFile, listener)) {
zipFileNames.add(zipFileName);
}
Avoid deeply nested control flow statements. Open
Open
case SlaRuleStatus.Passed:
passed++;
break;
Avoid deeply nested control flow statements. Open
Open
case 'a':
case 'b':
case 'c':
case 'd':
case 'e':
Avoid deeply nested control flow statements. Open
Open
if (prevRunId == -1)
{
Console.WriteLine("No test runs exist for this test");
continue;
}
Avoid deeply nested control flow statements. Open
Open
if (cleanupTest != null)
cleanupAndRerunTests.Add(cleanupTest);
Avoid deeply nested control flow statements. Open
Open
case 'A':
case 'B':
case 'C':
case 'D':
case 'E':
Avoid deeply nested control flow statements. Open
Open
if (scmPluginHandler != null) {
return scmPluginHandler.getSharedCheckOutDirectory(j);
}
Avoid deeply nested control flow statements. Open
Open
if (werFaultProcesses.Length > 0)
{
//Console.WriteLine("Kill process of WerFault");
foreach (Process pf in werFaultProcesses)
{
Consider simplifying this complex logical expression. Open
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
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
Open
return Bad;
Avoid too many return
statements within this method. Open
Open
return 0;
Avoid too many return
statements within this method. Open
Open
return FormValidation.error("Error opening a connection to the ALM server");
Avoid too many return
statements within this method. Open
Open
return runDesc;
Avoid too many return
statements within this method. Open
Open
return false;