Skip to content

Isvane/mamoru

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mamoru

Mamoru acts as a commit-msg hook that embeds a compiled dictionary to instantly catch and block typos before they enter your version control.


Installation

Install the binary using Cargo:

cargo install mamoru

Usage

Navigate to any Git repository and initialize the hook. This automatically configures Mamoru inside .git/hooks/commit-msg with the necessary executable permissions.

mamoru --init

# If existing git hooks exist, use --force to overwrite it
mamoru --init --force

Once installed, Mamoru intercepts your git commit commands automatically. If a commit contains unrecognized words, the hook safely aborts the commit and suggests corrections.

$ git commit -m "feat: implment algorimth update"

Commit blocked! Typos found in commit message:

  • "implment" -> Did you mean: implement?"algorimth" -> Did you mean: algorithm?

error: Please fix the spelling errors above.

License

This project is licensed under the MIT license.

About

Protect your commit messages from typos.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages