alexandre025/cdx

View on GitHub
app/assets/javascripts/cdx/admin/controllers/taxonomies.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function taxons_jstree has 108 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function taxons_jstree(data) {
    var create_or_update_url = data['create_or_update_url'];

    $('#taxonomy_tree').jstree({
        core: {
Severity: Major
Found in app/assets/javascripts/cdx/admin/controllers/taxonomies.js - About 4 hrs to fix

    Function check_callback has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

                check_callback: function (op, node, par, pos, more) {
    Severity: Minor
    Found in app/assets/javascripts/cdx/admin/controllers/taxonomies.js - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status