nooline/nooline

View on GitHub
common/js/nooline/build-controls.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function buildControls has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  N.buildControls = function buildControls (data) {

    var allSnippets = N.contentCategories.findAllContent();
    var permissions = {};

Severity: Minor
Found in common/js/nooline/build-controls.js - About 1 hr to fix

Function addPermission has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _.each(data.permissions, function addPermission (permission) {

      permissions[permission] = true;

      _.each(N.controls['control-locations'],
Severity: Minor
Found in common/js/nooline/build-controls.js - About 1 hr to fix

Function addControl has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        function addControl (types, spot) {

        var $button;
        var $container;

Severity: Minor
Found in common/js/nooline/build-controls.js - About 1 hr to fix

There are no issues that match your filters.

Category
Status