Showing 95 of 716 total issues
Avoid deeply nested control flow statements. Open
Open
case SlaRuleStatus.Failed:
failed++;
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 (folder != null)
folderName = folder.Name.Replace(".", "_");
Avoid deeply nested control flow statements. Open
Open
if (cleanupTest != null)
cleanupAndRerunTests.Add(cleanupTest);
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
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
Open
case '0':
case '1':
case '2':
case '3':
case '4':
Avoid deeply nested control flow statements. Open
Open
if (parentName.contains(testPath)) {
falsePositive.add(item);
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 (archiveFolder(reportFolder, testStatus, archivedFile, listener)) {
zipFileNames.add(zipFileName);
}
Avoid deeply nested control flow statements. Open
Open
if (werFaultProcesses.Length > 0)
{
//Console.WriteLine("Kill process of WerFault");
foreach (Process pf in werFaultProcesses)
{
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 (prevRunId == -1)
{
Console.WriteLine("No test runs exist for this test");
continue;
}
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
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
Avoid too many return
statements within this method. Open
Open
return;
Avoid too many return
statements within this method. Open
Open
return result;
Avoid too many return
statements within this method. Open
Open
return false;
Avoid too many return
statements within this method. Open
Open
return runDesc;
Avoid too many return
statements within this method. Open
Open
return ans;