talho/openphin

View on GitHub
app/assets/javascripts/ext_extensions/TreeGrid/Overrides.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function doRender has 58 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        doRender : function(cs, rs, ds, startRow, colCount, stripe)
        {
            var filtered = ds.isFiltered();
            var ts = this.templates, ct = ts.cell, rt = ts.row, last = colCount-1;
            var tstyle = 'width:'+this.getTotalWidth()+';';
Severity: Major
Found in app/assets/javascripts/ext_extensions/TreeGrid/Overrides.js - About 2 hrs to fix

    Function renderCellTreeUI has 36 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            renderCellTreeUI : function(record, store)
            {
                if(store.isFiltered())
                {
                    return this.templates.treeui.apply({});
    Severity: Minor
    Found in app/assets/javascripts/ext_extensions/TreeGrid/Overrides.js - About 1 hr to fix

      Function doRender has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              doRender : function(cs, rs, ds, startRow, colCount, stripe)
      Severity: Minor
      Found in app/assets/javascripts/ext_extensions/TreeGrid/Overrides.js - About 45 mins to fix

        There are no issues that match your filters.

        Category
        Status