commitlint-scope

command module
v2.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

README

commitlint-scope

CI Go Reference Latest Release License Coverage Status Go Report Card

Git commit conventional scope linter.

Table of contents

Purpose

Lint changed files against configured scope. Similar to CODEOWNERS. Useful if your dev-flow requires strict scoped file changes control over CI process.

Quick start

Install

https://github.com/thumbrise/commitlint-scope/releases

Run
commitlint-scope --from main --to feature

Configuration file

Init

Generate .commitlint-scope.yml file.

commitlint-scope init

Overview

#$schema: https://github.com/thumbrise/commitlint-scope/blob/main/docs/schema/config.json

# Scope parsing customization. Not required, if you follow common conventional header. In example: 'type!(scope): subject'
#scopeRegex: ^[a-z]+(?:\((?P<scope>[^)]+)\))?!?:\s

# Patterns map: each key is a scope name, value is a list of glob patterns that match files belonging to that scope.
patterns:
  "auth": [ "services/auth/**" ]
  "migrations": [ "database/migrations/*.sql" ]
  "frontend": [ "**/assets/**", "**/frontend/**" ]
  "docs": [ "**/*.md" ]

Zero Configuration

Without configuration file - scopes are treated as file-glob matches, relative to repository root.

feat(auth): Some subject

Linter will compare changed files against glob pattern auth/**

CI

TODO: Add high-DX examples


JSON schema

https://github.com/thumbrise/commitlint-scope/blob/main/docs/schema/config.json

License

Apache 2.0

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL