lint: Common Lints for Commit Messages

lintR Documentation

Common Lints for Commit Messages

Description

Lint a commit message for typical commit style and best practices for git.

Usage

lint_commit_msg(x)

Arguments

x

A single commit message from get_commit_msgs().

Value

integer(1). Invisibly returns the number of detected lints in the message.

Examples

## Not run: 
  lapply(get_commit_msgs(7L), lint_commit_msg)

## End(Not run)

gitr documentation built on April 13, 2025, 1:08 a.m.