sfstanley/citydogshare

View on GitHub
app/assets/javascripts/tag-it.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:
Severity: Major
Found in app/assets/javascripts/tag-it.js - About 5 hrs to fix

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

    /*
    * jQuery UI Tag-it!
    *
    * @version v2.0 (06/2011)
    *
    Severity: Minor
    Found in app/assets/javascripts/tag-it.js - About 3 hrs to fix

      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);
      
      
      Severity: Minor
      Found in app/assets/javascripts/tag-it.js - About 1 hr to fix

        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)
        Severity: Minor
        Found in app/assets/javascripts/tag-it.js - About 1 hr to fix

          There are no issues that match your filters.

          Category
          Status