Repository navigation
refactor(adr-lint)!: reject a non-canonical adr-dir instead of normalizing it - #39
Conversation
…izing it Fail the Check ADR files step with one error when adr-dir is empty, absolute, has a . or .. component, contains // or ends with /, and use adr-dir as it is afterwards. This replaces the normalization added for review findings about inputs that no caller uses. The repository root (.) is rejected too. Refs furedea/agent-config#293 BREAKING CHANGE: adr-dir values such as ./docs/adr, docs/adr/ or . are errors. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Review summary: one finding, no blockers.
The validation expression handles every case in the PR table (I traced each by hand; I did not run the tests). The 🤖 Generated with Claude Code |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6545f2d348
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
@codex review |
|
No findings. I read the diff and traced the validation logic; I did not run the bats tests or CI.
|
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🤖 I have created a release *beep* *boop* --- ## [2.0.0](v1.6.0...v2.0.0) (2026-12-02) ### ⚠ BREAKING CHANGES * **adr-lint:** reject a non-canonical adr-dir instead of normalizing it ([#39](#39)) * **adr-lint:** check ADR files in shell instead of adr-check ([#37](#37)) ### Features * **adr-lint:** check ADR files in shell instead of adr-check ([#37](#37)) ([9dc6a04](9dc6a04)) ### Code Refactoring * **adr-lint:** reject a non-canonical adr-dir instead of normalizing it ([#39](#39)) ([60f069a](60f069a)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: furedea-release[bot] <353651101+furedea-release[bot]@users.noreply.github.com>
adr-lintの「Check ADR files」で,adr-dirを正規化するnormalize_dir(約 17 行)をやめ,正規の形でないadr-dirを,ADR_DIRを使うどの手順よりも前の独立した手順「Validate adr-dir」でエラーにする.理由:正規化は #37 のレビュー指摘(
./docs/adr,.,docs/./adr,..,//,絶対パス)ごとに足したもので,呼び出し側はすべて既定のdocs/adrを使っている.入力は境界で一度だけ検査する.release PR #38(2.0.0)より先にマージする: 同じ破壊的変更として 2.0.0 に含めるため.
adr-dirdocs/adr(既定)./docs/adr,docs/adr/,docs//adr,docs/./adr,docs/x/../adr,絶対パス.(リポジトリ直下)検証
bats tests -r: 19 件すべて成功(正規でない書き方の拒否とdocs/adrの受理を含む)872f1ff,18 件成功.adr-lint-files,ast-grep,gha-lint,all-greenほか)ADR_DIRを使う手順より後にある)2 件を872f1ffで修正(Validate adr-dirを最初の手順に分離),再レビューは指摘なし範囲・関連
adr-checkを廃止する計画の L2 の追補)--full-history)の検査は変えない.🤖 Generated with Claude Code