railsadminteam/rails_admin

View on GitHub
src/rails_admin/remote-form.js

Summary

Maintainability
B
5 hrs
Test Coverage

Function _bindFormEvents has 71 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _bindFormEvents: function () {
      var widget = this,
        dialog = this._getModal(),
        form = dialog.find("form"),
        saveButtonText = dialog.find(":submit[name=_save]").html(),
Severity: Major
Found in src/rails_admin/remote-form.js - About 2 hrs to fix

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

        _create: function () {
          var widget = this;
          var dom_widget = widget.element;
    
          var edit_url =
    Severity: Minor
    Found in src/rails_admin/remote-form.js - About 1 hr to fix

      Function _getModal has 32 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          _getModal: function () {
            var widget = this;
            if (!widget.dialog) {
              widget.dialog = $(
                '<div id="modal" class="modal fade">\
      Severity: Minor
      Found in src/rails_admin/remote-form.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status