Repository navigation
fix: DET-016 for TODO literals, exceptions date crash, doc/code drift (v0.13.0) - #25
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Fixes from a P1–P4 review of the library. Check logic is unchanged apart from the targeted fixes listed below. Released as v0.13.0 (minor bump because of the breaking rule-id rename).
Breaking
DET-006was used for two different rules. It now means only the idempotency downgrade, as the catalog documents; the TODO-literal check isDET-016. Renameexceptions[]entries withrule: DET-006that were meant for TODO literals torule: DET-016.Fixed
check_exceptionscrashed the whole pre-commit hook with aTypeErroron an unquotedexpires: YYYY-MM-DD(YAML loads it asdatetime.date). Now comparesstr(expires); regression test added.validate_servicemap.pyreturns 2 on an unreadable file (as its docstring says);apply_upstream.pyreturns 1 on invalid JSON.check_architecture.py:--writewithout--apply-upstream-fixesis a usage error instead of being silently ignored; docstring documents the dry-run;not-*literals replaced with the existing_NOT_*constants.-hexits 0;usage()lists subcommands in sorted order.check_drift.py:_SERVICE_MAP_RELATIVEconstant; stale# Plan 02comment removed.Docs
VALIDATION_RULES.md: DET-016 section (field list matchescheck_todos.py), architecture-audit section (DEP/IDEMP/DOC/SLA), removed the false claim thatcheck_drift.pydetects cross-service cycles.AGENTS.mdandCLAUDE.md.SKILL.md, Go 1.26 in CONTRIBUTING,on_failuredocumented as a free-form string, dangling "spec §4.5/§6.3" references removed,/archspec:validatewrites one JSON file per linter (a single file used to hold several concatenated arrays).plugin.json,marketplace.json,pyproject.toml, and the manifest test; CHANGELOG entry added.Checks
pytest: 235 passed;go test/go vet: okruff check .: cleanbenchmarks/run.sh: pass🤖 Generated with Claude Code