symphonycms/symphony-2

View on GitHub
symphony/assets/js/src/symphony.pickable.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function symphonyPickable has 49 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    $.fn.symphonyPickable = function(options) {
        var objects = $(this),
            settings = {
                content: '#contents',
                pickables: '.pickable'
Severity: Minor
Found in symphony/assets/js/src/symphony.pickable.js - About 1 hr to fix

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

            objects.on('change.pickable', function pick() {
                var object = $(this),
                    choice = object.val(),
                    relation = object.attr('id') || object.attr('name'),
                    related = $(settings.pickables + '[data-relation="' + relation + '"]'),
    Severity: Minor
    Found in symphony/assets/js/src/symphony.pickable.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status