-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(commitlint): addition of commit message linter (#665)
Adds commitlint to check the commit message style against agreed conventional commits configuration. Changes script argument values to always use linter names (e.g. shellcheck). Changes argument handling to allow only one checking action that can now accept further optional arguments.
- Loading branch information
1 parent
426e8a2
commit 2b43ecc
Showing
3 changed files
with
89 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
rules: | ||
body-case: [2, always, sentence-case] | ||
body-full-stop: [2, always] | ||
body-leading-blank: [2, always] | ||
body-max-line-length: [2, always, 72] | ||
footer-leading-blank: [2, always] | ||
footer-max-line-length: [2, always, 72] | ||
header-max-length: [2, always, 72] | ||
scope-case: [2, always, lower-case] | ||
subject-case: | ||
- 2 | ||
- never | ||
- [pascal-case, sentence-case, start-case, upper-case] | ||
subject-empty: [2, never] | ||
subject-full-stop: [2, never, "."] | ||
type-case: [2, always, lower-case] | ||
type-empty: [2, never] | ||
type-enum: | ||
- 2 | ||
- always | ||
- [build, chore, ci, docs, feat, fix, perf, refactor, style, test] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters