sshaw/itunes_store_transporter_web

View on GitHub
public/javascripts/jqueryFileTree.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function fileBrowser has 80 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    $.fn.fileBrowser = function(o, handler) {
        if( !o ) var o = {};
        if( o.root == undefined ) o.root = '';
        if( o.script == undefined ) o.script = 'browse';
        if( o.title == undefined ) o.title = 'Select a File';
Severity: Major
Found in public/javascripts/jqueryFileTree.js - About 3 hrs to fix

    Function bindTree has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                var bindTree = function(t) {
                    $(t).find('LI A').bind('click', function() {
                        var count = ($(this).data('clickcount') || 0) + 1;
    
                        if(count == 1) {
    Severity: Minor
    Found in public/javascripts/jqueryFileTree.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status