This repository is dedicated to Algorithm Problem Solving and includes a Commit Lint setup to maintain a consistent Git commit message style.
Use the .gitmessage file and Git Hooks to apply a commit message template and enforce commit message validation.
# Set commit template
git config --global commit.template ./githook/.gitmessage
# Set Git hooks path
git config core.hooksPath ./githook
# Grant execute permission to the commit-msg hook
chmod +x githook/commit-msgWith this setup, every commit will follow predefined message rules.
.
├── baekjoon/
│ └── ... # Baekjoon algorithm solutions
├── githook/
│ ├── commit-msg # Commit message validation script
│ └── .template # Commit message template
├── docs/
│ └── pull_request_template.md # Pull request template
├── programmers/
│ └── ... # Programmers algorithm solutions
└── util/
├── TestSupport.java # Test execution & I/O utilities
└── ThrowingRunnable.java # Runnable allowing checked exceptions