jenkinsci/hpe-application-automation-tools-plugin

View on GitHub
src/main/java/com/microfocus/application/automation/tools/octane/executor/UFTTestDetectionCallable.java

Summary

Maintainability
A
40 mins
Test Coverage

Consider simplifying this complex logical expression.
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

        private void wrapScmChanges(AbstractBuild<?, ?> build) {

    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.

    See

    There are no issues that match your filters.

    Category
    Status