milespratt/bingmaps-react

View on GitHub

Showing 2 of 13 total issues

Function makeMap has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  const makeMap = useCallback(() => {
    const { Maps } = window.Microsoft;

    // only make a new map if one doesn't already exist
    if (!map.current) {
Severity: Minor
Found in src/components/BingMapsReact.jsx - About 1 hr to fix

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

        (pushPinsToAdd, infobox, map, Maps) => {
          removePushpins(map, Maps);
          pushPinsToAdd.forEach((pushPin) => {
            if (pushPin === null) {
              return;
    Severity: Minor
    Found in src/components/BingMapsReact.jsx - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language