Showing 90 of 154 total issues
Function render
has 515 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render: function() {
var worksheet = this.state.worksheet || {};
return (
<div className="monthly-payment_worksheet">
<section>
File explore-rates.js
has 851 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
'use strict';
var $ = require( 'jquery' );
var jQuery = $;
require( 'highcharts' );
Function exports
has 388 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function( grunt ) {
'use strict';
var path = require( 'path' );
Function createNewForm
has 336 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createNewForm( id, loanData ) {
var loan = objectify( '#lc-input-' + id, [
{
name: 'amount-borrowed',
File monthly-payment-worksheet.js
has 550 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
var React = require( 'react' );
var $ = jQuery = require( 'jquery' );
require( 'jquery.scrollto' );
var InputUSD = require( './react-components/input-usd.jsx' );
Function process_journey
has a Cognitive Complexity of 56 (exceeds 5 allowed). Consider refactoring. Open
Open
def process_journey(item):
del item['comments']
del item['date']
custom_fields = item['custom_fields']
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function Notifier
has 158 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Notifier = function(watching){
var _listeners = [], _acceptLists = [], _updates = [], _updater = false, properties = [], values = [];
var self = this;
Object.defineProperty(self, '_watching', {
enumerable: true,
File Gruntfile.js
has 391 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
module.exports = function( grunt ) {
'use strict';
var path = require( 'path' );
Function createNewForm
has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring. Open
Open
function createNewForm( id, loanData ) {
var loan = objectify( '#lc-input-' + id, [
{
name: 'amount-borrowed',
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Consider simplifying this complex logical expression. Open
Open
if(supportsAccessors && !Object.observe){
(function(extend, global){
var isCallable = (function(toString){
var s = toString.call(toString),
u = typeof u;
Function utils
has 124 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var utils = function( id ) {
var $el;
if ( !id ) {
File formalize.js
has 364 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
'use strict';
var $ = require( 'jquery' );
var debounce = require( 'debounce' );
var cost = require( 'overall-loan-cost' );
File loan-store.js
has 363 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
'use strict';
var $ = require( 'jquery' );
var assign = require( 'object-assign' );
LoanStore
has 35 functions (exceeds 20 allowed). Consider refactoring. Open
Open
var LoanStore = assign( {}, EventEmitter.prototype, {
_loans: [],
downpaymentConstant: 'downpayment-percent',
Function renderChart
has 105 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function renderChart( data, cb ) {
if ( chart.isInitialized ) {
var hc = chart.$el.highcharts();
File form-explainer.js
has 336 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
'use strict';
var $ = jQuery = require('jquery');
var sticky = require('../../vendor/sticky/jquery.sticky.js');
require('../../vendor/jquery.easing/jquery.easing.js');
File object.observe-polyfill.js
has 311 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
var supportsAccessors = require('./supports-accessors');
// The polyfill below is from https://github.com/jdarling/Object.observe
/*
Function updateView
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function updateView() {
chart.startLoading();
// reset view
dropdown( [ 'county', 'loan-term' ] ).hideHighlight();
Function Notification
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Notification( element ) { // eslint-disable-line max-statements, inline-comments, max-len
var BASE_CLASS = 'm-notification';
// Constants for the state of this Notification.
Function Worksheet
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Worksheet( options ) {
var _inputsList = {};
var _inputsGroupDOM;
var _container = options.container;