osbzr/gooderp_addons

View on GitHub
fixed_header/static/src/lib/jquery.stickytableheaders.js

Summary

Maintainability
D
1 day
Test Coverage

Function Plugin has 220 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function Plugin (el, options) {
        // To avoid scope issues, use 'base' instead of 'this'
        // to reference this class from internal events and functions.
        var base = this;

Severity: Major
Found in fixed_header/static/src/lib/jquery.stickytableheaders.js - About 1 day to fix

    File jquery.stickytableheaders.js has 251 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*! Copyright (c) 2011 by Jonas Mosbech - https://github.com/jmosbech/StickyTableHeaders
        MIT license info: https://github.com/jmosbech/StickyTableHeaders/blob/master/license.txt */
    
    ;(function ($, window, undefined) {
        'use strict';
    Severity: Minor
    Found in fixed_header/static/src/lib/jquery.stickytableheaders.js - About 2 hrs to fix

      Function toggleHeaders has 45 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              base.toggleHeaders = base.debounce(function () {
                  if (base.$el) {
                      base.$el.each(function () {
                          var $this = $(this),
                              newLeft,
      Severity: Minor
      Found in fixed_header/static/src/lib/jquery.stickytableheaders.js - About 1 hr to fix

        Function getWidth has 28 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                base.getWidth = function ($clonedHeaders) {
                    var widths = [];
                    $clonedHeaders.each(function (index) {
                        var width, $this = $(this);
        
        
        Severity: Minor
        Found in fixed_header/static/src/lib/jquery.stickytableheaders.js - About 1 hr to fix

          There are no issues that match your filters.

          Category
          Status