Skip to content

Instantly share code, notes, and snippets.

@seanknox
Created June 27, 2015 06:05
Show Gist options
  • Save seanknox/d3059c7864b8411cd2fc to your computer and use it in GitHub Desktop.
Save seanknox/d3059c7864b8411cd2fc to your computer and use it in GitHub Desktop.
verify_plugin_signatures: false
# We ignore the following git hooks provided by overcommit for now
PostCheckout:
ALL:
enabled: false
CommitMsg:
ALL:
enabled: false
# Custom options for our project
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'
RailsSchemaUpToDate:
enabled: true
description: 'Checking if database schema is up to date'
include:
- 'db/migrate/*.rb'
- 'db/schema.rb'
- 'db/structure.sql'
YamlSyntax:
enabled: true
description: 'Checking YAML syntax'
RailsBestPractices:
enabled: true
description: 'Checking Rails best practices'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment