src/main/java/com/microfocus/application/automation/tools/octane/executor/UFTTestDetectionCallable.java
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
Refactor this method to reduce its Cognitive Complexity from 27 to the 15 allowed. Open
Open
private void wrapScmChanges(AbstractBuild<?, ?> build) {
- 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.