qmetrics.net

commitlint

Commit message linter for conventional commit formats

commitlint screenshot

commitlint checks whether commit messages follow conventional commit rules. Teams use it locally with git hooks or in CI for consistent history.

Overview

commitlint validates git commit messages against configurable rules, with conventional commit formatting as the common pattern. Message types such as build, chore, ci, docs, feat, fix, perf, refactor, revert, style, and test appear in the default conventional preset, and teams can override types through configuration.

The primary interface is a CLI installed as a development dependency. Configuration is loaded from several supported commitlint config file names, a commitlint field in package.json, or shared npm packages that follow the commitlint-config naming pattern. Shared presets include conventional, Angular, Lerna scopes, Nx scopes, and others.

Beyond the CLI, programmatic packages format reports, lint strings, load shared config, and read commits from a range or last edit. Integrations include commitizen adapters and hooks such as husky for linting at commit time. Guides cover local setup, CI integration, rules reference, and shareable configs.

The tool ties into conventional-changelog workflows for generating changelogs from structured commit history. commitlint is stable and widely used as a development quality gate rather than a hosted service.

Key features

  • Conventional commit validation
  • Shareable npm configurations
  • Multiple config file formats
  • CLI and programmatic lint APIs
  • Husky and CI integration paths
  • commitizen adapter support
  • conventional-changelog integration
  • Configurable rule sets

Use cases

  • Enforcing team commit conventions
  • Linting messages in CI pipelines
  • Standardizing changelog inputs
  • Sharing org-wide commit rules via npm

Tags

Similar software

Lazygit

Terminal user interface for everyday Git workflows

Lazygit wraps common Git operations in a keyboard-driven terminal UI. You can stage partial changes, rebase, cherry-pick, and inspect history without memorizing fragile command sequences.

★ 84.1k⟳ 5 days agoMIT

Gitea

Self-hosted Git forge with CI/CD and packages

Gitea is an all-in-one software development service you can run on your own infrastructure. It combines Git hosting with issues, reviews, project boards, package registries, and Gitea Actions CI/CD.

★ 59.3k⟳ todayMIT
Build & DeploymentSelf-hostable
Open Source Alternative to:GitHub

Gogs

Self-hosted Git service with web collaboration tools

Gogs hosts Git repositories over SSH and HTTP(S) and adds issues, pull requests, wikis, and organization features through a browser UI.

★ 48k⟳ 2 days agoMIT

GitHub CLI

Official GitHub terminal client

GitHub CLI brings issues, pull requests, and other GitHub workflows to the terminal beside git. It works with GitHub.com, Enterprise Cloud, and supported Enterprise Server deployments.

★ 47.3k⟳ yesterdayMIT

Harness

End-to-end developer platform with SCM, CI/CD, and registries

Harness Open Source combines code hosting, automated DevOps pipelines, hosted development environments called Gitspaces, and artifact registries in one platform.

★ 39k⟳ yesterdayApache-2.0
Build & DeploymentSelf-hostable
Open Source Alternative to:GitHub

Husky

Lightweight native Git hooks for Node projects

Husky wires Git hooks so teams can lint commit messages, run tests, or check code on commit and push. It uses core.hooksPath, stays around two kilobytes gzipped, and supports macOS, Linux, and Windows.

★ 35.4k⟳ 8 months agoMIT