Dogfalo/materialize

View on GitHub
js/chips.js

Summary

Maintainability
D
1 day
Test Coverage

Function material_chip has 233 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  $.fn.material_chip = function (options) {
    var self = this;
    this.$el = $(this);
    this.$document = $(document);
    this.SELS = {
Severity: Major
Found in js/chips.js - About 1 day to fix

    Function handleEvents has 102 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        this.handleEvents = function() {
          var SELS = self.SELS;
    
          self.$document.off('click.chips-focus', SELS.CHIPS).on('click.chips-focus', SELS.CHIPS, function(e){
            $(e.target).find(SELS.INPUT).focus();
    Severity: Major
    Found in js/chips.js - About 4 hrs to fix

      File chips.js has 252 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      (function ($) {
        var materialChipsDefaults = {
          data: [],
          placeholder: '',
          secondaryPlaceholder: '',
      Severity: Minor
      Found in js/chips.js - About 2 hrs to fix

        There are no issues that match your filters.

        Category
        Status