Skip to content

Commit

Permalink
chore: add configuration for CommitLint (#653)
Browse files Browse the repository at this point in the history
  • Loading branch information
Seddryck authored Nov 12, 2023
1 parent 7337f00 commit 070840a
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 27,760 deletions.
64 changes: 64 additions & 0 deletions .commitlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
version: v0.10.1
formatter: default
rules:
- header-min-length
- header-max-length
- body-max-line-length
- footer-max-line-length
- type-enum
severity:
default: error
settings:
body-max-length:
argument: -1
body-max-line-length:
argument: 72
body-min-length:
argument: 0
description-max-length:
argument: -1
description-min-length:
argument: 0
footer-enum:
argument: []
footer-max-length:
argument: -1
footer-max-line-length:
argument: 72
footer-min-length:
argument: 0
footer-type-enum:
argument: []
header-max-length:
argument: 50
header-min-length:
argument: 10
scope-charset:
argument: abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/,
scope-enum:
argument: []
flags:
allow-empty: true
scope-max-length:
argument: -1
scope-min-length:
argument: 0
type-charset:
argument: abcdefghijklmnopqrstuvwxyz
type-enum:
argument:
- feat
- fix
- docs
- style
- refactor
- perf
- test
- build
- ci
- chore
- revert
type-max-length:
argument: -1
type-min-length:
argument: 0
12 changes: 12 additions & 0 deletions .commitlint/hooks/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh

if ! type commitlint >/dev/null 2>/dev/null; then
echo ""
echo "commitlint could not be found"
echo "try again after installing commitlint or add commitlint to PATH"
echo ""
exit 2;
fi

commitlint lint --message $1

Loading

0 comments on commit 070840a

Please sign in to comment.