moneyadviceservice/dough

View on GitHub

Showing 5 of 13 total issues

File Validation.js has 323 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * @description Client side validation. Mirrors HTML5 validation API as much as possible.
 * Supported types are:
 * - `required`
 * - `minlength`
Severity: Minor
Found in assets/js/components/Validation.js - About 3 hrs to fix

    Function toggle has 44 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      Collapsable.prototype.toggle = function(forceTo, focusTarget) {
        var func,
            label,
            expandedLabel,
            iconClass;
    Severity: Minor
    Found in assets/js/components/Collapsable.js - About 1 hr to fix

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

          ChatPopup.prototype._setupListeners = function() {
            var self = this;
            // on icon click open popup
            this.chatPopupIcon.click(function(event) {
              event.preventDefault();
      Severity: Minor
      Found in assets/js/components/ChatPopup.js - About 1 hr to fix

        Function refreshInlineErrors has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          Validation.prototype.refreshInlineErrors = function() {
            if (!this.config.showInlineValidation) { return this; }
        
            this.$el.find('.form__row').each($.proxy(function(i, o) {
              var $formRow = $(o),
        Severity: Minor
        Found in assets/js/components/Validation.js - About 1 hr to fix

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

            BackToTop.prototype._setUpBTTLink = function() {
              var resizeProxy = $.proxy(this._resize, this);
              var scrollProxy = $.proxy(this._scroll, this);
              var self = this;
          
          
          Severity: Minor
          Found in assets/js/components/BackToTop.js - About 1 hr to fix
            Severity
            Category
            Status
            Source
            Language