DevIhor / overcommit-custom-hooks

This repository contains custom overcommit hooks which I use in projects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

overcommit-custom-hooks

This repository contains custom overcommit hooks which I use in projects.

Configuring

Within your project if you already not having any custom overcommit hooks you may simply do:

git clone git@github.com:pr0d1r2/overcommit-custom-hooks.git .git-hooks

You may also want to add it to local ignore:

echo .git-hooks/ >> .git/info/exclude

Select configuration you want, add it into your .overcommit.yml and run overcommit --sign.

All

PreCommit:
  EnsureNoFocusInSpecs:
    enabled: true
    include: '**/*_spec.rb'
  EnsureNoByebugInFiles:
    enabled: true
  EnsureNoBindingPryInFiles:
    enabled: true

PostCheckout:
  SpringStop:
    enabled: true

PostMerge:
  SpringStop:
    enabled: true

SpringStop

PostMerge:
  SpringStop:
    enabled: true

and/or:

PostCheckout:
  SpringStop:
    enabled: true

EnsureNoFocusInSpecs

PreCommit:
  EnsureNoFocusInSpecs:
    enabled: true
    include: '**/*_spec.rb'

EnsureNoByebugInFiles

PreCommit:
  EnsureNoByebugInFiles
    enabled: true

EnsureNoBindingPryInFiles

PreCommit:
  EnsureNoBindingPryInFiles
    enabled: true

About

This repository contains custom overcommit hooks which I use in projects.

License:MIT License


Languages

Language:Ruby 100.0%