scottwillson/racing_on_rails

View on GitHub
app/assets/javascripts/application.js

Summary

Maintainability
B
5 hrs
Test Coverage

Function makeEditable has 57 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function makeEditable() {
  jQuery('.editable').editable(
    function(value, settings) {
      var element = jQuery(this);
      element.find("input").attr("disabled", "disabled");
Severity: Major
Found in app/assets/javascripts/application.js - About 2 hrs to fix

    Function bindAutocomplete has 42 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function bindAutocomplete() {
      if (jQuery('.autocomplete').length) {
        jQuery('.autocomplete').autocomplete({
          delay: 200,
          minLength: 3,
    Severity: Minor
    Found in app/assets/javascripts/application.js - About 1 hr to fix

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

      function bindAutocompleteTeam() {
        if (jQuery('.team_autocomplete').length) {
          jQuery('.team_autocomplete').autocomplete({
            delay: 200,
            minLength: 3,
      Severity: Minor
      Found in app/assets/javascripts/application.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status