AI Slop Code Risk Monitor

valhalla/valhalla

SlopCodeMonitor badge for valhalla/valhalla Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Open Source Routing Engine for OpenStreetMap

0.7 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for valhalla/valhalla, a C++ project with 6,391 GitHub stars. SynthScan examined 606,294 lines of code across 796 source files, recording 315 pattern matches distributed across 14 syntactic categories. The legacy adjusted pattern signal is 0.7 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

0.7
Adjusted Signal
0.7
Raw Pattern Score
100%
Time Factor
2026-11-01
Last Push
6.4K
Stars
C++
Language
606.3K
Lines of Code
796
Files
315
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 2.2/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 234 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.3/100 · LOW

Are imports declared and package/API names verified? 43 finding(s).

Agent Over-Engineering Ratio 1.5/100 · LOW

Are wrappers, guards, and repeated structures necessary? 123 finding(s).

PR Review Velocity Impact 3.1/100 · LOW

Which changes need focused human review? 315 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 3MEDIUM 29LOW 283

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 315 distinct pattern matches across 14 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Over-Commented Block105 hits · 105 pts
SeverityFileLineSnippetContext
LOWtest/test.h1// -*- mode: c++ -*-COMMENT
LOW.github/workflows/windows.yml201 # - cdb (preinstalled SDK kit) first-chance AV stack traces + minidumpCOMMENT
LOW.github/workflows/windows.yml221 #COMMENT
LOW.github/workflows/windows.yml241 # # plain run first: exit code + output up to the crashCOMMENT
LOW.github/workflows/windows.yml261 # wbundle=$(grep -oiE 'https://[^"]+\.msixbundle' "${ws}/windbg.appinstaller" | head -1 || true)COMMENT
LOW.github/workflows/windows.yml281 # # a write breakpoint on the faulting slot (adapt @rsp+0x38 to the bad operand), thenCOMMENT
LOW.github/workflows/check_compilers.yml101COMMENT
LOWrun_route_scripts/perf_test/wrk-bench.sh1#! /usr/bin/env bashCOMMENT
LOWvalhalla/config.h1#pragma onceCOMMENT
LOWvalhalla/worker.h1#ifndef __VALHALLA_WORKER_H__COMMENT
LOWvalhalla/valhalla.h1#pragma onceCOMMENT
LOWvalhalla/proto_conversions.h1#pragma onceCOMMENT
LOWvalhalla/filesystem_utils.h1#pragma onceCOMMENT
LOWvalhalla/loki/reach.h1#pragma onceCOMMENT
LOWvalhalla/loki/reach.h21// returns. Which expansion do you keep around for performing the intersections. Surely not all ofCOMMENT
LOWvalhalla/loki/tiles.h1#ifndef __VALHALLA_LOKI_TILES_H__COMMENT
LOWvalhalla/loki/worker.h1#ifndef __VALHALLA_LOKI_SERVICE_H__COMMENT
LOWvalhalla/thor/bidirectional_astar.h1#ifndef VALHALLA_THOR_BIDIRECTIONAL_ASTAR_H_COMMENT
LOWvalhalla/thor/bidirectional_astar.h241 * destination - along with travel modes and elapsed time.COMMENT
LOWvalhalla/thor/bidirectional_astar.h261// form a "patch" path. The vias that were tracked earlier are then comparedCOMMENT
LOWvalhalla/thor/multimodal_transit.h1#ifndef VALHALLA_THOR_MULTIMODAL_H_COMMENT
LOWvalhalla/thor/timedistancematrix.h1#ifndef VALHALLA_THOR_TIMEDISTANCEMATRIX_H_COMMENT
LOWvalhalla/thor/unidirectional_astar.h1#pragma onceCOMMENT
LOWvalhalla/thor/costmatrix.h1#ifndef VALHALLA_THOR_COSTMATRIX_H_COMMENT
LOWvalhalla/thor/dijkstras.h1#ifndef VALHALLA_THOR_Dijkstras_H_COMMENT
LOWvalhalla/thor/worker.h1#ifndef __VALHALLA_THOR_SERVICE_H__COMMENT
LOWvalhalla/thor/optimizer.h1#ifndef VALHALLA_THOR_OPTIMIZER_H_COMMENT
LOWvalhalla/thor/triplegbuilder.h1#pragma onceCOMMENT
LOWvalhalla/thor/timedistancebssmatrix.h1#ifndef VALHALLA_THOR_TIMEDISTANCEBSSMATRIX_H_COMMENT
LOWvalhalla/thor/matrixalgorithm.h1#ifndef __VALHALLA_THOR_MATRIXALGORITHM_H__COMMENT
LOWvalhalla/thor/multimodal_astar.h1#ifndef VALHALLA_THOR_MULTIMODAL_ASTAR_HCOMMENT
LOWvalhalla/meili/match_result.h1// -*- mode: c++ -*-COMMENT
LOWvalhalla/meili/match_result.h21 // Coordinate of the match pointCOMMENT
LOWvalhalla/meili/map_matcher.h1// -*- mode: c++ -*-COMMENT
LOWvalhalla/meili/candidate_search.h1// -*- mode: c++ -*-COMMENT
LOWvalhalla/meili/grid_range_query.h1// -*- mode: c++ -*-COMMENT
LOWvalhalla/meili/routing.h1// -*- mode: c++ -*-COMMENT
LOWvalhalla/sif/dynamiccost.h1#ifndef VALHALLA_SIF_DYNAMICCOST_H_COMMENT
LOWvalhalla/sif/dynamiccost.h621 [&edgestatus](const EdgeIdsInComplexRestriction& edge_ids_in_complex_restriction) {COMMENT
LOWvalhalla/sif/hierarchylimits.h1#ifndef VALHALLA_SIF_HIERARCHYLIMITS_H_COMMENT
LOWvalhalla/sif/costfactory.h1#ifndef VALHALLA_SIF_COSTFACTORY_H_COMMENT
LOWvalhalla/mjolnir/graphbuilder.h1#ifndef VALHALLA_MJOLNIR_GRAPHBUILDER_HCOMMENT
LOWvalhalla/mjolnir/graphtilebuilder.h1#ifndef VALHALLA_MJOLNIR_GRAPHTILEBUILDER_H_COMMENT
LOWvalhalla/mjolnir/ferry_connections.h1#ifndef VALHALLA_MJOLNIR_FERRY_CONNECTIONS_H_COMMENT
LOWvalhalla/mjolnir/util.h1#ifndef VALHALLA_MJOLNIR_UTIL_H_COMMENT
LOWvalhalla/mjolnir/util.h401// {COMMENT
LOWvalhalla/mjolnir/osmway.h1#ifndef VALHALLA_MJOLNIR_PBFGRAPHBUILDER_OSMWAY_HCOMMENT
LOWvalhalla/mjolnir/osmdata.h1#ifndef VALHALLA_MJOLNIR_OSMDATA_HCOMMENT
LOWvalhalla/midgard/gridded_data.h1#ifndef VALHALLA_MIDGARD_GRIDDEDDATA_H_COMMENT
LOWvalhalla/midgard/gridded_data.h121 // on some platforms the intersection arithmetic for adjacent cells results in floating pointCOMMENT
LOWvalhalla/midgard/point_tile_index.h41 // Get all the points roughly within the "tile_width_degrees" of the given pt.COMMENT
LOWvalhalla/midgard/logging.h1#ifndef VALHALLA_MIDGARD_LOGGING_H_COMMENT
LOWvalhalla/midgard/logging.h61Logger& GetLogger(const LoggingConfig& config = {{"type", "std_out"}, {"color", "true"}});COMMENT
LOWvalhalla/midgard/logging.h81#ifndef LOG_TRACECOMMENT
LOWvalhalla/midgard/logging.h101#ifndef LOGGING_LEVEL_NONECOMMENT
LOWvalhalla/midgard/logging.h161#define LOGLN_ERROR(...)COMMENT
LOWvalhalla/midgard/logging.h181 ::valhalla::midgard::logging::LogLevel::LogInfo)COMMENT
LOWvalhalla/midgard/encoded.h1#pragma onceCOMMENT
LOWvalhalla/midgard/sequence.h1#pragma onceCOMMENT
LOWvalhalla/midgard/sequence.h21#include <io.h>COMMENT
45 more matches not shown…
Hyper-Verbose Identifiers85 hits · 90 pts
SeverityFileLineSnippetContext
LOWtest/scripts/test_valhalla_build_config.py129 def test_merge_preserves_old_values(self):CODE
LOWtest/scripts/test_valhalla_build_config.py156 def test_merge_keeps_old_keys_by_default(self):CODE
LOWtest/scripts/test_valhalla_build_config.py168 def test_merge_removes_all_old_keys_with_empty_list(self):CODE
LOWtest/scripts/test_valhalla_build_config.py179 def test_merge_nested_objects(self):CODE
LOWtest/scripts/test_valhalla_build_config.py206 def test_merge_preserves_key_order(self):CODE
LOWtest/scripts/test_valhalla_build_config.py220 def test_merge_report_tracks_added(self):CODE
LOWtest/scripts/test_valhalla_build_config.py232 def test_merge_report_tracks_removed(self):CODE
LOWtest/scripts/test_valhalla_build_config.py244 def test_merge_with_empty_old(self):CODE
LOWtest/scripts/test_valhalla_build_config.py255 def test_merge_with_empty_new(self):CODE
LOWtest/scripts/test_valhalla_build_config.py271 def test_merge_type_change_dict_to_scalar(self):CODE
LOWtest/scripts/test_valhalla_build_config.py282 def test_merge_type_change_scalar_to_dict(self):CODE
LOWtest/scripts/test_valhalla_build_config.py304 def test_merge_realistic_valhalla_config(self):CODE
LOWtest/scripts/test_valhalla_build_config.py348 def test_merge_removes_specific_keys_only(self):CODE
LOWtest/scripts/test_valhalla_build_config.py376 def test_merge_removes_nested_subtree(self):CODE
LOWtest/scripts/test_valhalla_build_config.py396 def test_merge_remove_keys_does_not_affect_existing_in_new(self):CODE
LOW⚡test/scripts/test_valhalla_build_config.py417 def test_none_removes_nothing(self):CODE
LOW⚡test/scripts/test_valhalla_build_config.py421 def test_empty_list_removes_all(self):CODE
LOW⚡test/scripts/test_valhalla_build_config.py431 def test_child_of_specified_path(self):CODE
LOWtest/scripts/test_valhalla_build_config.py445 def test_partial_match_not_removed(self):CODE
LOWtest/scripts/test_valhalla_build_elevation.py20 def test_get_tiles_with_graph(self):CODE
LOWtest/scripts/test_valhalla_build_elevation.py25 def test_get_tiles_with_geojson(self):CODE
LOWtest/scripts/test_valhalla_build_extract.py52 def test_tile_intersects_bbox(self):CODE
LOWtest/scripts/test_valhalla_build_extract.py92 def test_tile_intersects_geojson(self):CODE
LOWtest/scripts/test_valhalla_build_extract.py277 def test_find_by_name_case_insensitive(self):CODE
LOWtest/scripts/test_valhalla_build_extract.py285 def test_find_not_found_exits(self):CODE
LOWtest/scripts/test_valhalla_build_extract.py326 def test_tiles_with_multiple_regions(self):CODE
LOWtest/scripts/test_valhalla_build_extract.py344 def test_polygon_geometry_type(self):CODE
LOWtest/scripts/valhalla_build_extract.py281def _intersect_tiles_with_polygons(tile_resolver_: TileResolver, polygons):CODE
LOWtest/scripts/valhalla_build_extract.py292def _polygons_from_geojson_geometry(geometry: dict):CODE
LOW⚡test/bindings/python/test_graph_utils.py237 def test_tile_header_tile_checksum(self):CODE
LOW⚡test/bindings/python/test_graph_utils.py247 def test_tile_header_build_id(self):CODE
LOW⚡test/bindings/python/test_graph_utils.py257 def test_graphutils_dict_config(self):CODE
LOWtest/bindings/python/test_graph_utils.py91 def test_get_tile_base_lon_lat_and_reverse(self):CODE
LOWtest/bindings/python/test_graph_utils.py113 def test_get_tile_ids_from_bbox(self):CODE
LOWtest/bindings/python/test_graph_utils.py193 def test_get_graph_tile_header(self):CODE
LOWtest/bindings/python/test_graph_utils.py274 def test_graphutils_path_config(self):CODE
LOWtest/bindings/python/test_graph_utils.py290 def test_graphutils_file_path_string(self):CODE
LOWtest/bindings/python/test_graph_utils.py306 def test_graphutils_invalid_config_type(self):CODE
LOWtest/bindings/python/test_graph_utils.py317 def test_graphutils_missing_tile_data(self):CODE
LOWtest/bindings/python/test_graph_utils.py330 def test_graphutils_missing_mjolnir_config(self):CODE
LOWtest/bindings/python/test_graph_utils.py338 def test_get_tile_ids_from_ring_rectangle(self):CODE
LOWtest/bindings/python/test_graph_utils.py350 def test_get_tile_ids_from_ring_triangle(self):CODE
LOWtest/bindings/python/test_graph_utils.py364 def test_get_tile_ids_from_ring_diamond(self):CODE
LOWtest/bindings/python/test_graph_utils.py378 def test_get_tile_ids_from_ring_orientation(self):CODE
LOWtest/bindings/python/test_graph_utils.py391 def test_get_tile_ids_from_ring_auto_close(self):CODE
LOWtest/bindings/python/test_graph_utils.py404 def test_get_tile_ids_from_ring_default_levels(self):CODE
LOWtest/bindings/python/test_graph_utils.py419 def test_get_tile_ids_from_ring_w_shape(self):CODE
LOWtest/bindings/python/test_graph_utils.py467 def test_get_tile_ids_from_ring_errors(self):CODE
LOWtest/bindings/python/test_actor.py35 def test_version_python_package_constant(self):CODE
LOWtest/bindings/python/test_actor.py66 def test_endpoints_are_callable(self):CODE
LOWtest/bindings/python/test_graph_tile_header.py32 def test_default_constructible_and_mutable(self):CODE
LOWtest/bindings/python/test_graph_tile_header.py43 def test_checksum_convenience_setters_keep_the_other_half(self):CODE
LOWtest/bindings/python/test_graph_tile_header.py56 def test_checksum_setters_range_checked(self):CODE
LOWtest/bindings/python/test_graph_tile_header.py65 def test_everything_else_stays_read_only(self):CODE
LOWtest/bindings/python/test_graph_tile_header.py90 def test_from_bytes_accepts_a_whole_tile_buffer(self):CODE
LOWtest/bindings/python/test_graph_tile_header.py97 def test_file_roundtrip_touches_only_the_header(self):CODE
LOWtest/bindings/python/test_graph_tile_header.py119 def test_short_buffer_refused(self):CODE
LOWtest/bindings/python/test_graph_tile_header.py123 def test_short_or_missing_file_refused(self):CODE
LOW⚡test/bindings/python/test_mjolnir_utils.py26 def test_small_sums_fold_to_themselves(self):CODE
LOW⚡test/bindings/python/test_mjolnir_utils.py32 def test_matches_known_real_fold(self):CODE
25 more matches not shown…
Decorative Section Separators18 hits · 54 pts
SeverityFileLineSnippetContext
MEDIUMdocs/docs/api/openapi.yaml334 # -------------------------------------------------------------------------COMMENT
MEDIUMdocs/docs/api/openapi.yaml336 # -------------------------------------------------------------------------COMMENT
MEDIUMdocs/docs/api/openapi.yaml423 # -------------------------------------------------------------------------COMMENT
MEDIUMdocs/docs/api/openapi.yaml425 # -------------------------------------------------------------------------COMMENT
MEDIUMdocs/docs/api/openapi.yaml605 # -------------------------------------------------------------------------COMMENT
MEDIUMdocs/docs/api/openapi.yaml607 # -------------------------------------------------------------------------COMMENT
MEDIUMdocs/docs/api/openapi.yaml620 # -------------------------------------------------------------------------COMMENT
MEDIUMdocs/docs/api/openapi.yaml622 # -------------------------------------------------------------------------COMMENT
MEDIUMdocs/docs/api/openapi.yaml642 # -------------------------------------------------------------------------COMMENT
MEDIUMdocs/docs/api/openapi.yaml644 # -------------------------------------------------------------------------COMMENT
MEDIUMdocs/docs/api/openapi.yaml704 # -------------------------------------------------------------------------COMMENT
MEDIUMdocs/docs/api/openapi.yaml706 # -------------------------------------------------------------------------COMMENT
MEDIUMdocs/docs/api/openapi.yaml1576 # -------------------------------------------------------------------------COMMENT
MEDIUMdocs/docs/api/openapi.yaml1578 # -------------------------------------------------------------------------COMMENT
MEDIUMdocs/docs/api/openapi.yaml1659 # -------------------------------------------------------------------------COMMENT
MEDIUMdocs/docs/api/openapi.yaml1661 # -------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/windows.yml196 # ------------------------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/windows.yml210 # ------------------------------------------------------------------------------------------COMMENT
Unused Imports43 hits · 43 pts
SeverityFileLineSnippetContext
LOWlocales/po_tools.py30CODE
LOWtest/scripts/test_valhalla_build_extract.py18CODE
LOWsrc/bindings/python/valhalla/__init__.py3CODE
LOWsrc/bindings/python/valhalla/__init__.py4CODE
LOWsrc/bindings/python/valhalla/__init__.py5CODE
LOWsrc/bindings/python/valhalla/__init__.py5CODE
LOWsrc/bindings/python/valhalla/utils/__init__.py9CODE
LOWsrc/bindings/python/valhalla/utils/__init__.py10CODE
LOWsrc/bindings/python/valhalla/utils/__init__.py10CODE
LOWsrc/bindings/python/valhalla/utils/__init__.py10CODE
LOWsrc/bindings/python/valhalla/utils/__init__.py10CODE
LOWsrc/bindings/python/valhalla/utils/__init__.py10CODE
LOWsrc/bindings/python/valhalla/utils/__init__.py10CODE
LOWsrc/bindings/python/valhalla/utils/__init__.py10CODE
LOWsrc/bindings/python/valhalla/utils/__init__.py10CODE
LOWsrc/bindings/python/valhalla/utils/__init__.py10CODE
LOWsrc/bindings/python/valhalla/utils/__init__.py10CODE
LOWsrc/bindings/python/valhalla/utils/__init__.py10CODE
LOWsrc/bindings/python/valhalla/utils/__init__.py10CODE
LOWsrc/bindings/python/valhalla/utils/__init__.py10CODE
LOWsrc/bindings/python/valhalla/utils/__init__.py25CODE
LOWsrc/bindings/python/valhalla/mjolnir/__init__.py3CODE
LOWsrc/bindings/python/valhalla/mjolnir/__init__.py3CODE
LOWsrc/bindings/python/valhalla/midgard/utils/__init__.py3CODE
LOWsrc/bindings/python/valhalla/baldr/__init__.py3CODE
LOWsrc/bindings/python/valhalla/baldr/__init__.py3CODE
LOWsrc/bindings/python/valhalla/baldr/utils/__init__.py3CODE
LOWsrc/bindings/python/valhalla/baldr/utils/__init__.py3CODE
LOWsrc/bindings/python/valhalla/baldr/utils/__init__.py3CODE
LOWsrc/bindings/python/valhalla/baldr/utils/__init__.py3CODE
LOWsrc/bindings/python/valhalla/baldr/utils/__init__.py3CODE
LOWsrc/bindings/python/valhalla/baldr/utils/__init__.py3CODE
LOWsrc/bindings/python/valhalla/baldr/utils/__init__.py3CODE
LOWsrc/bindings/python/valhalla/baldr/utils/__init__.py3CODE
LOWsrc/bindings/python/valhalla/baldr/utils/__init__.py3CODE
LOWsrc/bindings/python/valhalla/baldr/utils/__init__.py3CODE
LOWsrc/bindings/python/valhalla/baldr/utils/__init__.py3CODE
LOWsrc/bindings/python/valhalla/baldr/utils/__init__.py3CODE
LOWsrc/bindings/python/valhalla/baldr/utils/__init__.py17CODE
LOWsrc/bindings/python/valhalla/baldr/utils/__init__.py18CODE
LOWsrc/bindings/python/valhalla/baldr/utils/__init__.py18CODE
LOWsrc/bindings/python/valhalla/baldr/utils/__init__.py18CODE
LOWsrc/bindings/python/valhalla/baldr/utils/__init__.py18CODE
Deep Nesting18 hits · 18 pts
SeverityFileLineSnippetContext
LOWlocales/po_tools.py129CODE
LOWlocales/po_tools.py379CODE
LOWlocales/po_tools.py456CODE
LOWlocales/po_tools.py140CODE
LOWtest/scripts/valhalla_build_elevation.py166CODE
LOWtest/scripts/valhalla_build_elevation.py247CODE
LOWtest/scripts/valhalla_build_elevation.py326CODE
LOWtest/scripts/valhalla_build_elevation.py181CODE
LOWtest/scripts/valhalla_build_config.py823CODE
LOWscripts/warnings_overview.py54CODE
LOWscripts/list_tiles.py103CODE
LOWrun_route_scripts/run_with_server.py36CODE
LOWrun_route_scripts/results/combine_route_stats.py11CODE
LOWsrc/bindings/nodejs/scripts/bundle.py127CODE
LOWsrc/bindings/python/scripts/auditwheel_patch.py37CODE
LOWsrc/bindings/python/valhalla/config.py62CODE
LOWsrc/bindings/python/valhalla/valhalla_build_config.py823CODE
LOWsrc/bindings/python/valhalla/__main__.py36CODE
Empty Error Handlers3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHtest/bindings/python/test_graph_utils.py270except RuntimeError:CODE
HIGHtest/bindings/python/test_graph_utils.py287except RuntimeError:CODE
HIGHtest/bindings/python/test_graph_utils.py303except RuntimeError:CODE
Structural Annotation Overuse8 hits · 14 pts
SeverityFileLineSnippetContext
LOWtest/CMakeLists.txt482 # Step 1: Find ASan library (try Clang naming, then GCC naming on Linux)COMMENT
LOWtest/CMakeLists.txt502 # Step 2: On Linux, also find C++ standard library (libstdc++ or libc++)COMMENT
LOWsrc/bindings/nodejs/scripts/create-package.sh5# Step 1: Set versionCOMMENT
LOWsrc/bindings/nodejs/scripts/create-package.sh36# Step 2: Create NPM package structureCOMMENT
LOWsrc/bindings/python/valhalla/config.py77 # Step 1: Parse config into a file pathCOMMENT
LOW⚡src/bindings/python/valhalla/config.py109 # Step 2: Load and validate config structureCOMMENT
LOW⚡src/bindings/python/valhalla/config.py117 # Step 3: Validate mjolnir configurationCOMMENT
LOW⚡src/bindings/python/valhalla/config.py127 # Step 4: Validate tile data exists on diskCOMMENT
Verbosity Indicators7 hits · 13 pts
SeverityFileLineSnippetContext
LOWvalhalla/thor/multimodal_transit.h192 * TODO - once auto/bicycle are allowed modes we need to check if parkingCOMMENT
LOWsrc/bindings/nodejs/scripts/create-package.sh5# Step 1: Set versionCOMMENT
LOWsrc/bindings/nodejs/scripts/create-package.sh36# Step 2: Create NPM package structureCOMMENT
LOWsrc/bindings/python/valhalla/config.py77 # Step 1: Parse config into a file pathCOMMENT
LOW⚡src/bindings/python/valhalla/config.py109 # Step 2: Load and validate config structureCOMMENT
LOW⚡src/bindings/python/valhalla/config.py117 # Step 3: Validate mjolnir configurationCOMMENT
LOW⚡src/bindings/python/valhalla/config.py127 # Step 4: Validate tile data exists on diskCOMMENT
Self-Referential Comments4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMdocker/test.sh167#### Create a tar ball ####COMMENT
MEDIUMdocker/test.sh178#### Create a new container with same config ####COMMENT
MEDIUM.github/workflows/no_git_blame.yml59 # Create the file if missing, or update itCOMMENT
MEDIUMrun_route_scripts/results/total_multi_run_stats.sh32# Initialize sum variablesCOMMENT
Excessive Try-Catch Wrapping8 hits · 12 pts
SeverityFileLineSnippetContext
LOWtest/scripts/valhalla_build_elevation.py274 except Exception as e:CODE
MEDIUMtest/scripts/valhalla_build_config.py931 print(f"Error: Config file not found: {args.merge_config}", file=sys.stderr)CODE
MEDIUMtest/scripts/valhalla_build_config.py934 print(f"Error: Invalid JSON in config: {e}", file=sys.stderr)CODE
LOWrun_route_scripts/run_with_server_matrix.py48 except Exception as e:CODE
LOWrun_route_scripts/run_with_server.py46 except Exception as e:CODE
LOWrun_route_scripts/run_with_server.py78 except Exception as e:CODE
MEDIUMsrc/bindings/python/valhalla/valhalla_build_config.py931 print(f"Error: Config file not found: {args.merge_config}", file=sys.stderr)CODE
MEDIUMsrc/bindings/python/valhalla/valhalla_build_config.py934 print(f"Error: Invalid JSON in config: {e}", file=sys.stderr)CODE
AI Slop Vocabulary3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMtest/bindings/nodejs/tests.js121 // we utilize NodeJS's thread pool to process requests in parallel, this test verifies there are no race conditionsCOMMENT
MEDIUMvalhalla/sif/dynamiccost.h1383 // percentage of allowing probable restriction a 0 probability means do not utilize themCOMMENT
MEDIUMsrc/thor/triplegbuilder_utils.h296 // TODO: do (optional) seconds resolution for the input & output so that this becomes robustCOMMENT
Modern Structural Boilerplate9 hits · 9 pts
SeverityFileLineSnippetContext
LOWsrc/bindings/python/valhalla/config.py10__all__ = ["get_help", "get_config", "parse_and_validate_config"]CODE
LOWsrc/bindings/python/valhalla/__init__.py19__all__ = ["Actor", "ValhallaError", "get_config", "get_help", "__version__"]CODE
LOWsrc/bindings/python/valhalla/actor.py8__all__ = ["Actor"]CODE
LOWsrc/bindings/python/valhalla/utils/__init__.py34__all__ = [CODE
LOWsrc/bindings/python/valhalla/mjolnir/__init__.py5__all__ = ["compute_tileset_build_id", "set_tileset_build_id"]CODE
LOWsrc/bindings/python/valhalla/midgard/utils/__init__.py5__all__ = ["decode_polyline"]CODE
LOWsrc/bindings/python/valhalla/baldr/__init__.py5__all__ = ["GraphId", "GraphTileHeader"]CODE
LOWsrc/bindings/python/valhalla/baldr/utils/graph_utils.py9__all__ = ["GraphUtils"]CODE
LOWsrc/bindings/python/valhalla/baldr/utils/__init__.py20__all__ = [CODE
Redundant / Tautological Comments3 hits · 5 pts
SeverityFileLineSnippetContext
LOWtest/scripts/valhalla_build_config.py45 # Check if key_path matches or is a child of any specified pathCOMMENT
LOW⚡src/bindings/python/valhalla/config.py102 # Check if file exists before resolvingCOMMENT
LOWsrc/bindings/python/valhalla/valhalla_build_config.py45 # Check if key_path matches or is a child of any specified pathCOMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWrun_route_scripts/perf_test/wrk-bench.sh10# Usage:COMMENT