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/
βββ TestUtil.java # I/O test utilities
βββ ThrowingRunnable.java # Runnable allowing checked exceptions