fbi-cde/crime-data-frontend

View on GitHub
src/util/nibrs.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function offenderDemo has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const offenderDemo = data => {
  const {
    offenderAgeNum,
    offenderEthnicity,
    offenderRaceCode,
Severity: Minor
Found in src/util/nibrs.js - About 1 hr to fix

    Function victimDemo has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const victimDemo = data => {
      const { victimAgeNum, victimEthnicity, victimRaceCode, victimSexCode } = data
    
      return {
        title: 'Victim demographics',
    Severity: Minor
    Found in src/util/nibrs.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status