Skip to content

kchr/overcommit-hooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

overcommit-hooks

Custom hooks for overcommit.

Feel free to submit your own! Just make a pull request. :-)

PreCommit

Name Description
SearchPattern Match each modified line against list of regular expressions

SearchPattern

Search files staged to commit for a list of regex patterns.

Matches found in modified lines are considered to be errors. If an unmodified line in a file staged for commit matches, it will show as a warning.

Configuration

In your .overcommit.yml:

PreCommit:
  SearchPattern:
    enabled: true
    description: 'Checking for string matches'
    include: '**/*.rb'
    patterns:
      - "@FIXME"
      - "@NOTE"
      - "require 'pp'"

About

Custom hooks for overcommit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages