Repository Analysis

Leaflet/Leaflet

🍃 JavaScript library for mobile-friendly interactive maps 🇺🇦

0.6 Likely human-written View on GitHub
0.6
Adjusted Score
0.6
Raw Score
100%
Time Factor
2026-05-28
Last Push
45,113
Stars
JavaScript
Language
119,970
Lines of Code
944
Files
49
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 2HIGH 0MEDIUM 4LOW 43

Pattern Findings

49 matches across 5 categories. Click a row to expand file-level details.

Over-Commented Block37 hits · 37 pts
SeverityFileLineSnippet
LOWspec/suites/layer/tile/GridLayerSpec.js601 requestAnimationFrame(() => {
LOWspec/suites/layer/tile/GridLayerSpec.js621 // i.e. _tileReady still did not have a chance to prepare the
LOWspec/suites/layer/tile/GridLayerSpec.js721 clock.tick(300);
LOWsrc/core/Handler.js41
LOWsrc/core/Browser.js21// @property mobile: Boolean; `true` for all browsers running in a mobile device.
LOWsrc/geo/LatLng.js81 // Altitude in meters (optional)
LOWsrc/geo/crs/CRS.js81 const b = this.projection.bounds,
LOWsrc/map/Map.js41//
LOWsrc/map/Map.js61 // @option center: LatLng = undefined
LOWsrc/map/Map.js81 // @option layers: Layer[] = []
LOWsrc/map/Map.js101 zoomAnimation: true,
LOWsrc/map/Map.js121
LOWsrc/map/Map.js1021 // CRS's bounds.
LOWsrc/map/Map.js1141 this._paneRenderers = {};
LOWsrc/map/Map.js1301 this._targets = {};
LOWsrc/map/Map.js1321 // Fired when the user pushes the right mouse button on the map, prevents
LOWsrc/map/handler/DragHandler.js21 // the map builds momentum while dragging and continues moving in
LOWsrc/map/handler/TapHoldHandler.js101// @section Handlers
LOWsrc/map/handler/KeyboardHandler.js181// @section Handlers
LOWsrc/map/handler/DoubleClickZoomHandler.js41}
LOWsrc/layer/DivOverlay.js21 this.setDefaultOptions({
LOWsrc/layer/Popup.js81 // @option maxHeight: Number = null
LOWsrc/layer/Popup.js121 // Set it to `false` if you want to override the default behavior of
LOWsrc/layer/Tooltip.js61// @alternative
LOWsrc/layer/ImageOverlay.js21
LOWsrc/layer/tile/TileLayer.js41 // @aka TileLayer options
LOWsrc/layer/tile/GridLayer.js81 this.setDefaultOptions({
LOWsrc/layer/tile/GridLayer.js121 // @option maxNativeZoom: Number = undefined
LOWsrc/layer/marker/Marker.js21
LOWsrc/layer/marker/Marker.js61 // @option riseOnHover: Boolean = false
LOWsrc/layer/marker/Marker.js81
LOWsrc/layer/vector/Polyline.js41 * [32.76, -96.72]]
LOWsrc/dom/DomEvent.js41const eventsKey = '_leaflet_events';
LOWsrc/geometry/Point.js61 this.x = (round ? Math.round(_x) : _x);
LOWsrc/control/ScaleControl.js21
LOWsrc/control/LayersControl.js61 position: 'topright',
LOWsrc/control/ZoomControl.js21 // @aka ZoomControl options
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippet
CRITICALsrc/dom/Draggable.js141 this._element.ownerDocument.body.classList.add('leaflet-dragging');
CRITICALsrc/dom/Draggable.js173 this._element.ownerDocument.body.classList.remove('leaflet-dragging');
Slop Phrases3 hits · 7 pts
SeverityFileLineSnippet
MEDIUMdocs/reference.html2711<div class='section-comments'>In addition to <a href="#layer">shared layer methods</a> like <code>addTo()</code> and <co
MEDIUMdocs/reference-2.0.0.html2624<div class='section-comments'>In addition to <a href="#layer">shared layer methods</a> like <code>addTo()</code> and <co
MEDIUMsrc/layer/marker/Marker.js110 * In addition to [shared layer methods](#Layer) like `addTo()` and `remove()` and [popup methods](#Popup) like bindPop
Fake / Example Data6 hits · 6 pts
SeverityFileLineSnippet
LOWdebug/tests/popup-resize.html32 marker.getPopup().setContent(`Lorem ipsum sit amet.
LOWdebug/tests/popup-resize.html37 marker.getPopup().setContent(`Lorem ipsum sit amet.
LOWdebug/map/iframe-map.html53 markers.bindPopup('<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis e
LOWdebug/map/iframe-map.html53 markers.bindPopup('<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis e
LOWdebug/map/map-mobile.html32 marker.bindPopup('<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis er
LOWdebug/map/map-mobile.html32 marker.bindPopup('<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis er
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippet
MEDIUMsrc/layer/tile/TileLayer.js72 // If `true` and user is on a retina display, it will request four tiles of half the specified size and a bigger zoom