kodgemisi/confdeck

View on GitHub
app/assets/javascripts/adminre.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function init has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        init: function (options) {
            // the dropdown
            $(options.dropdown).one("shown.bs.dropdown", coreDropdown);

            // core dropdown function
Severity: Minor
Found in app/assets/javascripts/adminre.js - About 1 hr to fix

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

                function coreDropdown (e) {
                    // define variable
                    var $target         = $(e.target),
                        $mediaList      = $target.find(".media-list"),
                        $indicator      = $target.find(".indicator");
    Severity: Minor
    Found in app/assets/javascripts/adminre.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status