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

New Rule: Git Message Regex #7

Open
Jeehut opened this issue Jul 30, 2018 · 0 comments
Open

New Rule: Git Message Regex #7

Jeehut opened this issue Jul 30, 2018 · 0 comments
Labels
rule request A new rule is requested

Comments

@Jeehut
Copy link
Contributor

Jeehut commented Jul 30, 2018

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.

@Jeehut Jeehut added this to the Public Release milestone Jul 30, 2018
@Jeehut Jeehut added the rule request A new rule is requested label Jul 30, 2018
@Jeehut Jeehut removed this from the Public Release milestone Sep 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
rule request A new rule is requested
Projects
None yet
Development

No branches or pull requests

1 participant