dev: add linter rule for Refs: in commit footer

+ No colon.
+ One ref per line.

Bad:
  Refs: A B C
  Ref: X Y
  Ref: Z
Good:
  Ref A
  Ref B
  Ref C
  Ref X
  Ref Y
  Ref Z
This commit is contained in:
Henrik Lissner 2021-08-01 11:43:22 -04:00
parent ccd20847c7
commit 5d1d0fc7c9

View file

@ -92,9 +92,9 @@
;; TODO Add bump validations for revert: type. ;; 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]\\|Refs\\): "
nil t)) nil t))
"Use present tense/imperative voice for references, without a colon") "Use present tense/imperative voice for footer references, without a colon")
;; TODO Check that bump/revert SUMMARY list: 1) valid modules and 2) ;; TODO Check that bump/revert SUMMARY list: 1) valid modules and 2)
;; modules whose files are actually being touched. ;; modules whose files are actually being touched.