tmcgee/cmv-widgets

View on GitHub
widgets/PrintPlus.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function setScaleRanges has 162 lines of code (exceeds 100 allowed). Consider refactoring.
Open

        setScaleRanges: function () {
            if (!this.mapSheetParams) {
                return;
            }

Severity: Major
Found in widgets/PrintPlus.js - About 3 hrs to fix

Function _onLayoutChange has 105 lines of code (exceeds 100 allowed). Consider refactoring.
Open

        _onLayoutChange: function (layout) {
            // Called with a boolean argument whenever the widget is opened or closed (true means it is open).
            // The layout dropdown calls the function with the name of the layout on the change event.

            // Set the cursor position to the left end of the value
Severity: Major
Found in widgets/PrintPlus.js - About 1 hr to fix

There are no issues that match your filters.

Category
Status