fbi-cde/crime-data-frontend

View on GitHub
src/components/downloads/DownloadDetailsAccordionBody.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function render has 59 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  render() {
    const { title } = this.props
    const details = downloadDetails.find(e => e.title === title)
    if (!details) return <div>TBD</div>
    return (
Severity: Major
Found in src/components/downloads/DownloadDetailsAccordionBody.js - About 2 hrs to fix

    Component should be written as a pure function
    Open

    class DownloadDetailsAccordionBody extends React.Component {

    For more information visit Source: http://eslint.org/docs/rules/

    Dangerous property 'dangerouslySetInnerHTML' found
    Open

                  dangerouslySetInnerHTML={{

    For more information visit Source: http://eslint.org/docs/rules/

    There are no issues that match your filters.

    Category
    Status