Skip to content

A very simple pre-commit hook for OCaml code to detect trailing whitespaces, too long lines ...

Notifications You must be signed in to change notification settings

iguerNL/stupid-precommit-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Stupid git pre-commit hook for OCaml code

Usage

  • Compile file ocpChecker.ml, eg with
ocamlopt -o ocp-checker ocpChecker.ml 
  • Copy ocp-checker and pre-commit to directory .git/hooks/ of your local cloned git project

  • You are done ! The hook with inspect your files before every commit:

  • trailing whitespaces are automatically removed. Modified files should be added before you try to commit again

  • a warning will be issued for files with lines larger that 80 characters. You should fix them before trying to commit again

About

A very simple pre-commit hook for OCaml code to detect trailing whitespaces, too long lines ...

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published