src/main/java/com/microfocus/application/automation/tools/octane/executor/CheckOutSubDirEnvContributor.java
Avoid deeply nested control flow statements. Open
Open
if (scmPluginHandler != null) {
return scmPluginHandler.getSharedCheckOutDirectory(j);
}
Refactor this method to reduce its Cognitive Complexity from 16 to the 15 allowed. Open
Open
public static String getSharedCheckOutDirectory(Job j) {
- Read upRead up
- Exclude checks
Cognitive Complexity is a measure of how hard the control flow of a method is to understand. Methods with high Cognitive Complexity will be difficult to maintain.