Showing 95 of 716 total issues
Consider simplifying this complex logical expression. Open
Open
if (string.IsNullOrWhiteSpace(qcServerUrl)
|| (string.IsNullOrWhiteSpace(qcLogin) && !SSOEnabled)
|| string.IsNullOrWhiteSpace(qcDomain)
|| string.IsNullOrWhiteSpace(qcProject)
|| (SSOEnabled && (string.IsNullOrWhiteSpace(qcClientID)
Consider simplifying this complex logical expression. 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)
Consider simplifying this complex logical expression. Open
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']) {
Consider simplifying this complex logical expression. Open
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;
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 (testSla == null) {
listener.getLogger().println("no RunReport.xml file was created");
} else {
runReportList.add(testSla);
}
Avoid deeply nested control flow statements. Open
Open
default:
throw new ArgumentException(
"Malformed \\uxxxx encoding.");
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
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 SlaRuleStatus.Passed:
passed++;
break;
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 (cleanupTest != null)
cleanupAndRerunTests.Add(cleanupTest);
Avoid deeply nested control flow statements. Open
Open
if (scmPluginHandler != null) {
return scmPluginHandler.getSharedCheckOutDirectory(j);
}
Avoid deeply nested control flow statements. Open
Open
default:
throw new ArgumentException(
"Malformed \\uxxxx encoding.");
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
if (!testCaseElement.hasAttribute(REPORT_NAME_FIELD)) {
continue;
}
Avoid deeply nested control flow statements. Open
Open
case SlaRuleStatus.NoData:
noData++;
break;
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;
}
Avoid deeply nested control flow statements. Open
Open
if (property instanceof Mailer.UserProperty) {
userEmail = ((Mailer.UserProperty) property).getAddress();
}