Skip to content

Instantly share code, notes, and snippets.

@tsu-nera
Last active October 13, 2018 17:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsu-nera/abe2299c13be3c8e863156d59f19e35b to your computer and use it in GitHub Desktop.
Save tsu-nera/abe2299c13be3c8e863156d59f19e35b to your computer and use it in GitHub Desktop.
overcommit config file
PreCommit:
RuboCop:
description: "Rubocopの実行"
enabled: true
command: ['bundle', 'exec', 'rubocop', '-c', '.rubocop.yml']
AuthorName:
description: "gitのユーザ名チェック"
enabled: false
# Fasterer:
# enabled: true
# description: "パフォーマンスチェック(fasterer)"
# BundleAudit:
# enabled: true
# description: "脆弱性チェック(bundler-audio)"
# Brakeman:
# enabled: true
# RailsSchemaUpToDate:
# enabled: true
# Reek:
# enabled: true
# command: ['reek', '-c', 'config.reek.yml']
# RailsBestPractices:
# enabled: true
# EsLint:
# description: "eslintの実行"
# enabled: true
# required_executable: 'npm'
# command: ['node_modules/.bin/eslint']
# flags: ['--format=compact']
# install_command: 'npm install -g eslint'
# include:
# - 'app/javascript/**/*.js'
# - 'app/javascript/**/*.vue'
# - '.eslintrc'
PostCheckout:
BundleInstall:
description: "bundle installの実行"
enabled: true
YarnInstall:
description: "yarn installの実行"
enabled: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment