chore: リポジトリ整理(セキュリティ・設定一貫性・ドキュメント品質) - #499
Conversation
- secret.json を credentials/google-oauth.json に移動し .gitignore を更新 - .trivyignore のレビュー日を 2026-03-22 に更新(全5エントリ) - devcontainer の claude-settings 差分を文書化 - CLAUDE.md に AGENTS.md 参照の意図を明記 - Cursor Project Rules (.cursor/rules/base.mdc) を追加 - code-complexity-check.sh の (( var++ )) バグを修正(set -e 互換) - Quality Gates の code-complexity-check を informational モードに変更 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
📝 WalkthroughWalkthroughRemoves strict flag from the code-complexity check invocation, refactors shell arithmetic logic, adds development standards and Claude settings docs, updates gitignore entries for credentials, and adjusts Trivy CVE review dates. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🔍 AI Code Review (Local Hook)Models: Codex (default) / Gemini (default) 🤖 Codex Review指摘事項
判定
|
🔍 AI Code Review (Local Hook)Models: Codex (default) / Gemini (default) 🤖 Codex Review指摘事項(重大度順)
結論: patch is incorrect
|
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
.cursor/rules/base.mdc (1)
1-4: MissingalwaysApply: truefor a universal base rule.If
alwaysApplyis true, the rule will be applied to every chat session. With onlyglobs: "**/*", these rules won't get attached unless the current file matches the glob; they are treated as auto-attach, but only triggered if there's an associated file path — if the glob doesn't match any file (or if the current session has no files), it's ignored.For a "全社横断" base rule,
alwaysApply: trueis the reliable mechanism. The canonical frontmatter pattern for this rule type is:🔧 Proposed fix
--- description: 全社横断の開発品質・コミュニケーション基準 -globs: "**/*" +globs: "" +alwaysApply: true ---🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.cursor/rules/base.mdc around lines 1 - 4, Add the frontmatter key alwaysApply: true to this base rule so it is attached to every session; specifically, update the YAML frontmatter that currently contains description and globs (the keys "description" and "globs: \"**/*\"") to include alwaysApply: true (keeping the leading and trailing --- markers intact) so the rule is forced to apply even when no file path matches.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@CLAUDE.md`:
- Line 6: The import token in CLAUDE.md uses a bare filename "AGENTS.md" which
will be treated as plain text; update that token to use the Claude import syntax
by replacing "AGENTS.md" with "@AGENTS.md" so the AGENTS.md file is actually
imported into CLAUDE.md (look for the literal "AGENTS.md" occurrence and change
it to "@AGENTS.md").
---
Nitpick comments:
In @.cursor/rules/base.mdc:
- Around line 1-4: Add the frontmatter key alwaysApply: true to this base rule
so it is attached to every session; specifically, update the YAML frontmatter
that currently contains description and globs (the keys "description" and
"globs: \"**/*\"") to include alwaysApply: true (keeping the leading and
trailing --- markers intact) so the rule is forced to apply even when no file
path matches.
| このファイルは Claude Code がプロジェクトルートで最初に読み込む設定ファイルです。 | ||
| 詳細なガイドラインは AGENTS.md に集約しています。 | ||
|
|
||
| AGENTS.md |
There was a problem hiding this comment.
Bare AGENTS.md won't be imported — use @AGENTS.md.
CLAUDE.md files import additional files using @path/to/import syntax, confirmed by the official Claude Code documentation. The bare AGENTS.md on line 6 is treated as plain text — AGENTS.md content will not be pulled into Claude's context, defeating the stated "include形式" intent.
🔧 Proposed fix
-AGENTS.md
+@AGENTS.md📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| AGENTS.md | |
| `@AGENTS.md` |
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@CLAUDE.md` at line 6, The import token in CLAUDE.md uses a bare filename
"AGENTS.md" which will be treated as plain text; update that token to use the
Claude import syntax by replacing "AGENTS.md" with "@AGENTS.md" so the AGENTS.md
file is actually imported into CLAUDE.md (look for the literal "AGENTS.md"
occurrence and change it to "@AGENTS.md").
git index がシンボリックリンク(mode 120000)のまま残っていたため、 CI環境でファイルが正しくチェックアウトされずテストが失敗していた。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Duplicate comments:
In `@CLAUDE.md`:
- Line 6: Replace the bare filename reference "AGENTS.md" with the
include/import form that uses the @ prefix so the file is pulled into context
(i.e., change the reference in CLAUDE.md from AGENTS.md to `@AGENTS.md`); update
the occurrence where the plain text is used so Claude Code recognizes and
imports the AGENTS.md content.
|
🎉 This PR is included in version 1.81.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Summary
secret.jsonをcredentials/google-oauth.jsonに移動し.gitignoreを整理.trivyignoreのレビュー日を2026-03-22(1ヶ月後)に更新(全5エントリ).devcontainer/claude-settings-README.mdを新規作成し、CI用 vs ローカル用の設定差分を文書化CLAUDE.mdにAGENTS.md参照の意図を明記(シンボリックリンク → include形式).cursor/rules/base.mdcを Cursor Project Rules 形式で新規作成script/code-complexity-check.shの(( var++ ))バグ修正(set -e環境で初期値0のインクリメントが falsy 評価される問題)grep -cのマッチ0件時に"0\n0"が代入されるバグ修正--strictなし(informational)に変更Test plan
rg secret.jsonで残存参照がないことを確認credentials/google-oauth.jsonの存在確認.trivyignore全5件のレビュー日が2026-03-22に更新されていることcode-complexity-check.shが正常動作すること(--jsonで出力確認済み)🤖 Generated with Claude Code
Summary by CodeRabbit
Configuration
Documentation
Chores