Kharouk/CameronCam

View on GitHub

Showing 4 of 10 total issues

File MapComponent.js has 291 lines of code (exceeds 250 allowed). Consider refactoring.
Confirmed

import React, { Component, useState } from "react";
import Button from "./Button";
import ImageUpload from "./ImageUpload";
import Description from "./Description";
import {
Severity: Minor
Found in src/components/MapComponent.js - About 3 hrs to fix

    Function SocialLinks has 69 lines of code (exceeds 25 allowed). Consider refactoring.
    Confirmed

    const SocialLinks = marker => {
      const [city, setCity] = useState(null);
      const [quote, setQuote] = useState(null);
      Geocode.fromLatLng(marker.lat, marker.lng).then(
        response => {
    Severity: Major
    Found in src/components/MapComponent.js - About 2 hrs to fix

      Function render has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Confirmed

        render() {
          return (
            <div id="map">
              <MapComponent
                lat={51.52713}
      Severity: Minor
      Found in src/components/MapComponent.js - About 1 hr to fix

        Function Button has 26 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        const Button = props => {
          if (props.isSaveButton) {
            color = "rgb(63, 130, 195)";
            onClick = props.saveToDatabase;
            margin = "0";
        Severity: Minor
        Found in src/components/Button.js - About 1 hr to fix
          Severity
          Category
          Status
          Source
          Language