Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Github Hound

When Hound comments on your pull request

Hound is a hosted service that reviews GitHub pull requests for style-guide violations.

In our GitHub repositories, Hound is based on RuboCop. You can also refer to the Rails Style Guide.

What to do

  1. Install RuboCop locally.
  2. Configure your local .rubocop.yml to match the HungryHub Hound configuration. Copy the .rubocop.yml from the repository root to ensure your local checks use the same rules as Hound. If no .rubocop.yml exists, Hound uses the default RuboCop rules.
  3. Run RuboCop on the affected file:
rubocop -a file_name
  1. Fix the code based on the Hound and RuboCop feedback.
  2. If the message is unclear, search the exact error text, for example Lint/UselessAssignment: Useless assignment to variable - today.

Do not mark the Hound conversation as resolved manually on GitHub until the code has been fixed.