chezmoi-source (чистая пересборка, не дамп 1.2 ГБ): - dot_claude: CLAUDE.md лин-роутер, AGENTS.md.tmpl (VPS вычищен), settings.json.tmpl (deny-щит 20 + security-guard hook), rules (structure + ECC 21 язык), 30 generic ECC-агентов, health-check - dot_codex: symlink-паритет; dot_agents: registry 13 скриптов HOME-генерик + методология docs - плагины: plugins.manifest + bootstrap Слой 1b (marketplace+install) - launchd: health.plist (PATH-фикс 127) + session-reaper.example - smoke++: secret-токен guard + канон-проверки (зелёный) - 0 hard личных данных; cut личного (kb/references/gsd/owner) → Ф4
1.3 KiB
1.3 KiB
paths
| paths | |||||
|---|---|---|---|---|---|
|
Ruby Hooks
This file extends common/hooks.md with Ruby and Rails specific content.
PostToolUse Hooks
Configure project-local hooks to prefer binstubs and checked-in tooling:
- RuboCop: run
bundle exec rubocop -A <file>or the project's safer formatter command after Ruby edits. - Brakeman: run
bundle exec brakeman --no-progressafter security-sensitive Rails changes. - Tests: run the narrowest matching
bin/rails test ...orbundle exec rspec ...command for touched files. - Bundler audit: run
bundle exec bundle-audit check --updatewhenGemfileorGemfile.lockchanges and the project has bundler-audit installed.
Warnings
- Warn on committed
debugger,binding.irb,binding.pry,puts,pp, orpcalls in application code. - Warn when an edit disables CSRF protection, expands mass-assignment, or adds raw SQL without parameterization.
- Warn when a migration changes data destructively without a reversible path or documented rollout plan.
CI Gate Suggestions
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.