:partly_sunny: The right way to check the weather
This report summarizes scanner evidence for chubin/wttr.in, a Go project with 30,650 GitHub stars. SynthScan examined 35,734 lines of code across 579 source files, recording 76 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 5.4 (Moderate 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.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 35 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 41 finding(s).
Which changes need focused human review? 76 finding(s).
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.
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.
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.
The scanner identified 76 distinct pattern matches across 7 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | build.sh | 4 | # ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | build.sh | 12 | # ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | build.sh | 14 | # ─── Configuration ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | build.sh | 20 | # ─── Font configuration ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | build.sh | 31 | # ─── Asset roots (non-font) ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | build.sh | 46 | # ─── Helper functions ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | build.sh | 110 | # ─── Actions ───────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | build.sh | 177 | # ─── Main dispatcher ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | internal/renderer/oneline/render.go | 11 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | internal/renderer/oneline/render.go | 13 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | internal/renderer/oneline/render_solar.go | 133 | // ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | internal/renderer/oneline/render_solar.go | 136 | // ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | internal/renderer/oneline/oneline.go | 17 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | internal/renderer/oneline/oneline.go | 19 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | internal/renderer/oneline/oneline.go | 44 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | internal/renderer/oneline/oneline.go | 46 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | internal/renderer/oneline/oneline.go | 83 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | internal/renderer/oneline/oneline.go | 86 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | internal/renderer/oneline/oneline.go | 113 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | internal/renderer/oneline/oneline.go | 115 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | internal/renderer/oneline/data_parse.go | 55 | // ── Parse numeric fields with safe defaults ──────────────────────────────── | COMMENT |
| MEDIUM | internal/renderer/oneline/data_parse.go | 73 | // ── Description (prefer translated lang_xx if present) ───────────────────── | COMMENT |
| MEDIUM | internal/renderer/oneline/data_parse.go | 88 | // ── Observation time ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | internal/renderer/oneline/data_parse.go | 94 | // ── Location fallback ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | internal/location/cache.go | 61 | // ── Persistent storage ─────────────────────────────── | COMMENT |
| MEDIUM⚡ | internal/location/cache.go | 66 | // ── Fast in-memory cache ───────────────────────────── | COMMENT |
| MEDIUM⚡ | internal/location/cache.go | 70 | // ── Batch writer ───────────────────────────────────── | COMMENT |
| MEDIUM⚡ | internal/location/cache.go | 76 | // ── Synchronization ────────────────────────────────── | COMMENT |
| MEDIUM | internal/location/cache.go | 141 | // ── Batch Writer ───────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | internal/location/cache.go | 386 | // ── LRU helpers ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | internal/location/cache.go | 426 | // ── Utility functions ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | internal/server/config.go | 79 | # ================================================ | COMMENT |
| MEDIUM⚡ | internal/server/config.go | 81 | # ================================================ | COMMENT |
| MEDIUM⚡ | internal/server/config.go | 88 | # ================================================ | COMMENT |
| MEDIUM⚡ | internal/server/config.go | 90 | # ================================================ | COMMENT |
| MEDIUM | internal/weather/weather.go | 260 | // ── Determine location string ──────────────────────────────────────── | COMMENT |
| MEDIUM | internal/weather/weather.go | 323 | // ── Geocode ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | internal/weather/weather.go | 345 | // ── Build Query ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | internal/weather/weather.go | 376 | // ── Fetch weather ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | internal/weather/weather.go | 398 | // ── Filling up Query ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | internal/weather/weather.go | 402 | // ── Render + Format ─────────────────────────────────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | internal/renderer/oneline/render.go | 187 | // Step 1: Get symbolic name from code (e.g. "116" → "PartlyCloudy") | COMMENT |
| LOW⚡ | internal/renderer/oneline/render.go | 193 | // Step 2: Look up the plain ASCII-style symbol | COMMENT |
| LOW | internal/query/queryparser.go | 32 | // Step 1: use the existing parser to get validated map[string]string | COMMENT |
| LOW | internal/query/fromrequest.go | 20 | // Step 1: Extract components from the URL path | COMMENT |
| LOW | internal/query/fromrequest.go | 35 | // Step 2: Process domain name for VIEW or LANG | COMMENT |
| LOW | internal/query/fromrequest.go | 50 | // Step 3: Process the first path component for VIEW or LANG if not set by domain | COMMENT |
| LOW | internal/query/fromrequest.go | 61 | // Step 4: Extract location and format from the path | COMMENT |
| LOW | internal/query/fromrequest.go | 90 | // Step 5: Set default language from header if not set by domain or URL | COMMENT |
| LOW | internal/query/fromrequest.go | 113 | // Step 6: Set User-Agent from header. Output defaulting based on the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | internal/renderer/oneline/render.go | 187 | // Step 1: Get symbolic name from code (e.g. "116" → "PartlyCloudy") | COMMENT |
| LOW⚡ | internal/renderer/oneline/render.go | 193 | // Step 2: Look up the plain ASCII-style symbol | COMMENT |
| LOW | internal/query/queryparser.go | 32 | // Step 1: use the existing parser to get validated map[string]string | COMMENT |
| LOW | internal/query/fromrequest.go | 20 | // Step 1: Extract components from the URL path | COMMENT |
| LOW | internal/query/fromrequest.go | 35 | // Step 2: Process domain name for VIEW or LANG | COMMENT |
| LOW | internal/query/fromrequest.go | 50 | // Step 3: Process the first path component for VIEW or LANG if not set by domain | COMMENT |
| LOW | internal/query/fromrequest.go | 61 | // Step 4: Extract location and format from the path | COMMENT |
| LOW | internal/query/fromrequest.go | 90 | // Step 5: Set default language from header if not set by domain or URL | COMMENT |
| LOW | internal/query/fromrequest.go | 113 | // Step 6: Set User-Agent from header. Output defaulting based on the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | build.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | internal/renderer/oneline/oneline.go | 21 | type RenderFunc func(ctx *RenderContext) string | COMMENT |
| LOW | internal/renderer/oneline/oneline.go | 201 | // If a percent-encoded sequence is invalid (e.g., not a valid hex number or incomplete), | COMMENT |
| LOW | internal/renderer/v2/block_temperature_colorized.go | 141 | // lastT := data[len(data)-1] | COMMENT |
| LOW | internal/cache/config.go | 1 | // internal/cache/config.go | COMMENT |
| LOW | internal/weather/weather.go | 41 | } | COMMENT |
| LOW | internal/weather/cache.go | 21 | // This should clear any in-progress state for the same key. | COMMENT |
| LOW | internal/query/doc.go | 1 | // Package query provides configuration-driven parsing and validation of | COMMENT |
| LOW | internal/query/doc.go | 21 | // parsed, err := query.ParseQueryString("lang=fr&format=3&T&0pq", config) | COMMENT |
| LOW | internal/query/fromrequest.go | 201 | COMMENT | |
| LOW | internal/ip/ip.go | 61 | db.UseErrorParser() | COMMENT |
| LOW | internal/domain/models.go | 1 | // Package domain contains the core domain models and data structures | COMMENT |
| LOW | internal/domain/models.go | 81 | // Useful for debugging and future cache policy decisions. | COMMENT |
| LOW | share/defs/options/options.yaml | 1 | query_options: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | internal/renderer/v1/testdata/update_golden.sh | 24 | # Read test cases using jq (more robust than pure bash) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | build.sh | 6 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | internal/renderer/v1/testdata/update_golden.sh | 17 | # Check if server is running | COMMENT |