Created
February 4, 2017 14:42
-
-
Save viktor-shmigol/c1722145cc7ab5bb9273a6dd25796f05 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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