mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
dev: add linter rules for module type
Recently added 'module' to our list of git commit types to represent changes to our module list. These events are important enough to Doom (and users) to track separately.
This commit is contained in:
@ -41,13 +41,13 @@
|
|||||||
(cons (concat
|
(cons (concat
|
||||||
"^\\("
|
"^\\("
|
||||||
(regexp-opt
|
(regexp-opt
|
||||||
'("bump" "dev" "docs" "feat" "fix" "merge" "nit" "perf"
|
'("bump" "dev" "docs" "feat" "fix" "merge" "module" "nit" "perf"
|
||||||
"refactor" "release" "revert" "test" "tweak"))
|
"refactor" "release" "revert" "test" "tweak"))
|
||||||
"\\)!?[^ :]*: ")
|
"\\)!?[^ :]*: ")
|
||||||
"Invalid type")
|
"Invalid type")
|
||||||
|
|
||||||
(cons (lambda ()
|
(cons (lambda ()
|
||||||
(looking-at "^\\(bump\\|revert\\|release\\|merge\\)!?([^)]+):"))
|
(looking-at "^\\(bump\\|revert\\|release\\|merge\\|module\\)!?([^)]+):"))
|
||||||
"This commit type's scope goes after the colon, not before")
|
"This commit type's scope goes after the colon, not before")
|
||||||
|
|
||||||
(cons (lambda ()
|
(cons (lambda ()
|
||||||
@ -89,6 +89,8 @@
|
|||||||
nil t))))
|
nil t))))
|
||||||
"Bump commit doesn't contain commit diff")
|
"Bump commit doesn't contain commit diff")
|
||||||
|
|
||||||
|
;; TODO Add bump validations for revert: type.
|
||||||
|
|
||||||
(cons (lambda ()
|
(cons (lambda ()
|
||||||
(re-search-forward "^\\(\\(Fix\\|Clos\\|Revert\\)ed\\|Reference[sd]\\): "
|
(re-search-forward "^\\(\\(Fix\\|Clos\\|Revert\\)ed\\|Reference[sd]\\): "
|
||||||
nil t))
|
nil t))
|
||||||
|
Reference in New Issue
Block a user