Skip to content

Git pre-commit hook to check for common mistakes (var_dump(), console.log(), etc.)

License

Notifications You must be signed in to change notification settings

borisguery/git-keywords-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Git Keywords Checker

This hook let you check for common oversights like var_dump(), die() or console.log() and prevent you from commit them.

Installation

To install hook, copy pre-commit file to your project .git/hooks/pre-commit:

$ cp pre-commit .git/hooks/pre-commit;
$ chmod +x .git/hooks/pre-commit;

Now, when you will make some modifications for code and will try to commit, GIT will stop you and tells where problem exist.

About

Such functions are likely to be never commited in a public repository or on live site, when you are on rush, you forget about them.

Contact

Boris Guéry

Feel free to drop me a line at: [email protected]

License

See COPYING

About

Git pre-commit hook to check for common mistakes (var_dump(), console.log(), etc.)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages