HeadlinesBriefing favicon HeadlinesBriefing.com

Gommitlint: A Standalone Git Commit Linter

DEV Community •
×

Developers often write poor commit messages, especially when moving fast or letting AI agents commit automatically. This creates messy Git history that's hard to decipher months later. The author found existing commit-lint tools either depended on specific runtimes or were abandoned, failing to provide a reliable solution.

The result is Gommitlint, a single binary written in Go without runtime dependencies. It validates messages against rules like Conventional Commits, sign-off requirements, and cryptographic signatures. It runs in three modes: as a CLI, via Git hooks, or in CI/CD pipelines, enforcing quality before code merges.

It ships with sensible defaults—subject line limits, imperative mood, and linear history checks—working immediately without a config file. The tool is open source under EUPL-1.2, available for Linux, BSD, and as system packages. It aims to make consistent commit hygiene effortless for both individual developers and automated workflows.