ministryofjustice/Claim-for-Crown-Court-Defence

View on GitHub
app/webpack/javascripts/modules/Modules.AllocationDataTable.js

Summary

Maintainability
A
1 hr
Test Coverage

File Modules.AllocationDataTable.js has 302 lines of code (exceeds 250 allowed). Consider refactoring.
Wontfix

/**
 * Allocation Controller
 * @type {Object}
 */
moj.Modules.AllocationDataTable = {
Severity: Minor
Found in app/webpack/javascripts/modules/Modules.AllocationDataTable.js - About 3 hrs to fix

    Consider simplifying this complex logical expression.
    Open

          if ((isNaN(min) && isNaN(max)) ||
            (isNaN(min) && claimAmount <= max) ||
            (min <= claimAmount && isNaN(max)) ||
            (min <= claimAmount && claimAmount <= max)) {
            return true
    Severity: Critical
    Found in app/webpack/javascripts/modules/Modules.AllocationDataTable.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status