Skip to content
This repository was archived by the owner on Mar 10, 2022. It is now read-only.
This repository was archived by the owner on Mar 10, 2022. It is now read-only.

New Rule: Git Message Regex #7

@Jeehut

Description

@Jeehut

A rule that allows to check git messages in specified branches (also defineable through regexes) using regexes. An example configuration could be something like this:

rules:
  - git_message_regex:
      branch: work/.*
      last_commits_count: 10
      matching: "\\A(?:\\[[^\\]]+\\] )?[A-Z](?:.){,49}(?:\\n\\n\\S.*)?\\z"

Whereas the branch value active could always only lint the active branch.

In combination with Overcommit (which could run ProjLint before committing) this rule would be even useful during development.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions