angelakuo/citydogshare

View on GitHub
public/assets/tag-it-aa6d22935fb229046a5b6e99bacb9f76f3fd837307b956d8c87ef2b6b89376e2.js

Summary

Maintainability
C
1 day
Test Coverage

Function _create has 128 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        _create: function() {
            // for handling static scoping inside callbacks
            var that = this;

            // There are 2 kinds of DOM nodes this widget can be instantiated on:

    File tag-it-aa6d22935fb229046a5b6e99bacb9f76f3fd837307b956d8c87ef2b6b89376e2.js has 308 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*
    * jQuery UI Tag-it!
    *
    * @version v2.0 (06/2011)
    *

      Function createTag has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              createTag: function(value, additionalClass) {
                  var that = this;
                  // Automatically trims the value of leading and trailing whitespace.
                  value = $.trim(value);
      
      

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

                removeTag: function(tag, animate, removeOnly) {
                    var that = this;
        
                    if (this.options.pruneTags && !removeOnly) {
                        that.pruneTag(tag)

          There are no issues that match your filters.

          Category
          Status