rules/ruby/hooks.md
This file extends common/hooks.md with Ruby and Rails specific content.
Configure project-local hooks to prefer binstubs and checked-in tooling:
bundle exec rubocop -A <file> or the project's safer formatter command after Ruby edits.bundle exec brakeman --no-progress after security-sensitive Rails changes.bin/rails test ... or bundle exec rspec ... command for touched files.bundle exec bundle-audit check --update when Gemfile or Gemfile.lock changes and the project has bundler-audit installed.debugger, binding.irb, binding.pry, puts, pp, or p calls in application code.bundle exec rubocop
bundle exec brakeman --no-progress
bin/rails test
bundle exec rspec
Use only the commands that are present in the project; do not install new hook dependencies without maintainer approval.