tmcgee/cmv-widgets

View on GitHub

Showing 3 of 293 total issues

Function loadQueryBuilder has 402 lines of code (exceeds 100 allowed). Consider refactoring.
Open

        loadQueryBuilder: function () {
            var qbOptions = this.mixinDeep(this.defaultQueryBuilderOptions, this.queryBuilderOptions || {});

            // Namespace the configuration variables in this mixin
            this.queryBuilder = {
Severity: Major
Found in widgets/Search/QueryBuilder/QueryBuilderMixin.js - About 1 day to fix

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
Severity
Category
Status
Source
Language