jenkinsci/hpe-application-automation-tools-plugin

View on GitHub
HpToolsLauncher/ParallelRunner/ParallelRunnerEnvironmentUtil.cs

Summary

Maintainability
A
1 hr
Test Coverage

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 too many return statements within this method.
    Open

                return EnvironmentType.MOBILE;
    Severity: Major
    Found in HpToolsLauncher/ParallelRunner/ParallelRunnerEnvironmentUtil.cs - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status