From 3d423862d7fa97a2e6ad7fc31d72a3839b56fe95 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 1 Aug 2021 11:38:09 -0400 Subject: [PATCH] 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. --- core/cli/ci.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/cli/ci.el b/core/cli/ci.el index 688dcae11..97f60aab8 100644 --- a/core/cli/ci.el +++ b/core/cli/ci.el @@ -41,13 +41,13 @@ (cons (concat "^\\(" (regexp-opt - '("bump" "dev" "docs" "feat" "fix" "merge" "nit" "perf" + '("bump" "dev" "docs" "feat" "fix" "merge" "module" "nit" "perf" "refactor" "release" "revert" "test" "tweak")) "\\)!?[^ :]*: ") "Invalid type") (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") (cons (lambda () @@ -89,6 +89,8 @@ nil t)))) "Bump commit doesn't contain commit diff") + ;; TODO Add bump validations for revert: type. + (cons (lambda () (re-search-forward "^\\(\\(Fix\\|Clos\\|Revert\\)ed\\|Reference[sd]\\): " nil t))