Learnings
New Learning
About The App
Hire Me
Writing Samples
Edit Learning
Title
Body
Context: After fixing initial errors, CI failed again. Rubocop reported style violations (whitespace, empty lines), and `bin/rails importmap:audit` resulted in an "Unrecognized command" error. Resolution: * Rubocop: I decided to run `rbenv exec bundle exec rubocop -A` locally before committing to auto-correct style violations. I added this as a step in `PLANNING.md`/`README.md`. * Importmap Audit: I changed the command in `.github/workflows/ci.yml` to `bundle exec rails importmap:audit` to ensure the task runs within the correct bundle context. Learning: Regularly running the linter (`rubocop -A`) locally prevents style errors from reaching CI. I learned that using `bundle exec` before Rails/Rake tasks in CI can sometimes resolve environment or command recognition issues by ensuring the command runs within the context of the installed gems.
Learned on (YYYY-MM-DD)
Tags
Add comma-separated tags. They help filter learnings later.
Back to Learnings