scrubmx/jquery.loan-calculator

View on GitHub

Showing 3 of 12 total issues

File jquery.loan-calculator.js has 355 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * jQuery Loan Calculator 3.1.3
 *
 * Author: Jorge González <scrub.mx@gmail>
 * Released under the MIT license - https://opensource.org/licenses/MIT
Severity: Minor
Found in js/jquery.loan-calculator.js - About 4 hrs to fix

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

        _IRR: function (values, guess) {
          guess = guess || 0;
    
          // Calculates the resulting amount
          var irrResult = function (values, dates, rate) {
    Severity: Minor
    Found in js/jquery.loan-calculator.js - About 1 hr to fix

      Function validate has 39 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          validate: function () {
            if (typeof this.settings.loanAmount === 'string') {
              this.settings.loanAmount = this._toNumeric(this.settings.loanAmount);
            }
      
      
      Severity: Minor
      Found in js/jquery.loan-calculator.js - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language