angelakuo/citydogshare

View on GitHub
public/assets/jquery_ujs-784a997f6726036b1993eb2217c9cb558e1cbb801c6da88105588c56f13b466a.js

Summary

Maintainability
C
1 day
Test Coverage

File jquery_ujs-784a997f6726036b1993eb2217c9cb558e1cbb801c6da88105588c56f13b466a.js has 360 lines of code (exceeds 250 allowed). Consider refactoring.
Open

(function($, undefined) {

/**
 * Unobtrusive scripting adapter for jQuery
 * https://github.com/rails/jquery-ujs

    Function handleRemote has 62 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        handleRemote: function(element) {
          var method, url, data, withCredentials, dataType, options;
    
          if (rails.fire(element, 'ajax:before')) {
            withCredentials = element.data('with-credentials') || null;

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

          blankInputs: function(form, specifiedSelector, nonBlank) {
            var foundInputs = $(),
              input,
              valueToCheck,
              radiosForNameWithNoneSelected,

        Avoid deeply nested control flow statements.
        Open

                  if (element.data('params')) data = data + '&' + element.data('params');

          There are no issues that match your filters.

          Category
          Status