* lisp/emacs-lisp/checkdoc.el (checkdoc-file-comments-engine):
Don't add "Commentary:" header if it looks like a test file.
err
(or
;; * Commentary Section
- (if (not (lm-commentary-mark))
- (progn
+ (if (and (not (lm-commentary-mark))
+ ;; No need for a commentary section in test files.
+ (not (string-match
+ (rx (or (seq (or "-test.el" "-tests.el") string-end)
+ "/test/" "/tests/"))
+ (buffer-file-name))))
+ (progn
(goto-char (point-min))
(cond
((re-search-forward