Geovation/photos

View on GitHub
src/custom/components/ReportsPage.js

Summary

Maintainability
B
5 hrs
Test Coverage

Function componentDidMount has 109 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  componentDidMount(months, ctx) {
    const { geojson } = this.props;

    if (geojson) {
      const withNumber = _.filter(geojson.features, (f) => f.properties.number);
Severity: Major
Found in src/custom/components/ReportsPage.js - About 4 hrs to fix

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

        function drawByMonth(months, ctx) {
          let sortedMonths = _.map(months, (amount, date) => {
            return {
              date: new Date(date),
              amount,
    Severity: Minor
    Found in src/custom/components/ReportsPage.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status