metasploit-framework

https://github.com/rapid7/metasploit-framework

Ruby

Metasploit Framework

#merge_error_message

Check that modules actually pass msftidy checks before committing
or after merging.

Simply symlink this script to your local .git/hooks/pre-commit script
and your .git/hooks/post-merge scripts. Note the lack of a trailing
.rb

If you are in the top-level dir, the symlink commands would be:

ln -sf ../../tools/dev/pre-commit-hook.rb .git/hooks/pre-commit
ln -sf ../../tools/dev/pre-commit-hook.rb .git/hooks/post-merge

That way, you will track changes to this script when it updates
(rarely). If you'd prefer to copy it directly, that's okay, too (mark
it +x and don't name it filename.rb, just filename).

Source | Google | Stack overflow

Edit

git clone [email protected]:rapid7/metasploit-framework.git

cd metasploit-framework

open tools/dev/pre-commit-hook.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs--merge_error_message-for-pr


# Commit to git

git add tools/dev/pre-commit-hook.rbgit commit -m "better docs for #merge_error_message"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs--merge_error_message-for-pr

hub pull-request


# Celebrate!