Skip to content

Commit df95a65

Browse files
shimbacoclaude
andcommitted
コミット前コマンドをmakeコマンドに統一
環境変数は1Password CLI経由で自動設定されるため、bin/rails等ではなく makeコマンドを使用するよう注意書きを追加。 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 608cedf commit df95a65

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

rails/CLAUDE.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -181,18 +181,20 @@ make graphql-dump
181181

182182
### コミット前に実行するコマンド
183183

184-
**重要**: コードをコミットする前に、以下のコマンドを実行して CI が通ることを確認してください:
184+
**重要**: コードをコミットする前に、以下のコマンドを実行して CI が通ることを確認してください。
185+
186+
**注意**: 環境変数は 1Password CLI 経由で自動設定されるため、`make` コマンドを使用してください。直接 `bin/rails` 等を実行すると環境変数が不足してエラーになります。
185187

186188
```sh
187189
# 1. Zeitwerk(オートロード)チェック
188-
bin/rails zeitwerk:check
190+
make zeitwerk
189191

190192
# 2. Sorbet型定義の更新と型チェック
191-
bin/rails sorbet:update
192-
bin/srb tc
193+
make sorbet-update
194+
make sorbet
193195

194196
# 3. Rubyコードのリント・フォーマット
195-
bin/standardrb --fix
197+
make fmt
196198

197199
# 4. ERBリント
198200
bin/erb_lint --lint-all
@@ -204,7 +206,7 @@ yarn prettier . --check
204206
yarn eslint .
205207

206208
# 7. テストを実行
207-
bin/rspec
209+
make test
208210
```
209211

210212
## Pull Request のガイドライン

0 commit comments

Comments
 (0)