July 2, 2025
Automatic Rubocop Formatting with Claude Code Hooks
While setting up Claude Code in my Ruby projects, I wanted RuboCop to run automatically whenever I created or edited a file. The CLAUDE.md instructions suggested simply telling Claude to run RuboCop, but I found this approach flaky. Sometimes it would skip files or not run corrections until I explicitly asked, and would often try to fi...
Read more