utils/dep_freshness/parsers
Krzysztof kuhy Rudnicki 2e1f3da6cf
Some checks are pending
dependency freshness / dependencies on newest stable (push) Waiting to run
file length / file-length (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
palette drift / palette (push) Waiting to run
shared gate tests / gate unit tests (push) Waiting to run
Point a pubspec finding at the dependency, not the config block of the same name
Every Flutter app here declares `flutter_launcher_icons` twice: as a dev
dependency, and as a TOP-LEVEL configuration block for the same tool. The line
lookup broke ties by indentation alone, so the top-level block won and the
gate told you to fix a line that carries no version at all -- lyricanki
reported `pubspec.yaml:64` while the caret being complained about is at 48.

The pubspec parser now says which top-level keys may hold a version, and a key
found outside them is only a fallback. `environment` is in that list on
purpose: without it the `sdk:` inside a `flutter: {sdk: flutter}` block would
outrank the SDK constraint it is meant to find.

Only the pubspec parser passes the hint. JSON and TOML indent their section
headers differently, so they keep the old behaviour unchanged.

310 tests, 100% branch coverage.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CRykabMwPgDzFHcARoqpaK
2026-08-28 14:33:11 +02:00
..
__init__.py Add the shared dependency-freshness gate 2026-08-28 13:00:35 +02:00
_lines.py Point a pubspec finding at the dependency, not the config block of the same name 2026-08-28 14:33:11 +02:00
fvm.py Add the shared dependency-freshness gate 2026-08-28 13:00:35 +02:00
golang.py Add the shared dependency-freshness gate 2026-08-28 13:00:35 +02:00
javascript.py Judge peer dependencies by range, and check the packageManager pin 2026-08-28 13:38:40 +02:00
pubspec.py Point a pubspec finding at the dependency, not the config block of the same name 2026-08-28 14:33:11 +02:00
python.py Add the shared dependency-freshness gate 2026-08-28 13:00:35 +02:00
rust.py Add the shared dependency-freshness gate 2026-08-28 13:00:35 +02:00