saasbook/baytrailbirding

View on GitHub

Showing 3 of 9 total issues

File index.js has 321 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// ESLINT:
/* global L, moment, $ */
 
 
const MAX_RADIUS = 50; // Radius distance in KM
Severity: Minor
Found in app/assets/javascripts/index.js - About 3 hrs to fix

    Function createBird has 36 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    createBird(bird) {
    const { latLng } = bird.loc;
     
    const icon = L.divIcon({
    html: '<i class="fa-solid fa-dove fa-2x"></i>',
    Severity: Minor
    Found in app/assets/javascripts/index.js - About 1 hr to fix

      Function constructor has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      constructor(elementId, currentPosition) {
      const tileLayerSource = 'https://a.tiles.mapbox.com/styles/v1/lohneswright/ciocejooj006obdnjhmd2x9qp/tiles/{z}/{x}/{y}?access_token={accessToken}';
       
      const map = L.map(elementId).setView([37.42, -121.91], 13);
       
      Severity: Minor
      Found in app/assets/javascripts/index.js - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language