talho/openphin

View on GitHub
app/assets/javascripts/dashboard/manage_favorites_window.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function constructor has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    constructor: function(config){
         var rowActions = new Ext.ux.grid.RowActions({
           actions: [
               {iconCls: 'removeBtn', qtip: 'delete', cb: function(grid, record, action, index, colIndex){
                   if(confirm("Are you sure you wish to remove " + record.get('tab_config').title + "?"))
Severity: Minor
Found in app/assets/javascripts/dashboard/manage_favorites_window.js - About 1 hr to fix

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

                   {iconCls: 'removeBtn', qtip: 'delete', cb: function(grid, record, action, index, colIndex){
    Severity: Minor
    Found in app/assets/javascripts/dashboard/manage_favorites_window.js - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status