Skip to content

Instantly share code, notes, and snippets.

@viktor-shmigol
Created February 4, 2017 14:42
Show Gist options
  • Save viktor-shmigol/c1722145cc7ab5bb9273a6dd25796f05 to your computer and use it in GitHub Desktop.
Save viktor-shmigol/c1722145cc7ab5bb9273a6dd25796f05 to your computer and use it in GitHub Desktop.
Add the overcommit gem to your Gemfile in the development group,
Run overcommit --install, and
Configure overcommit to run Rubocop before a commit is complete by modifying the .overcommit.yml file. PreCommit: # Ignore all Overcommit default options ALL: enabled: false on_warn: fail
# Enable explicitly each desired pre commit check
RuboCop:
enabled: true
description: 'Analyzing with Rubocop'
required_executable: 'rubocop'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment