Merge pull request #636 from jrblevin/issue-634
[markdown-mode.git] / tests / checkdoc-batch.el
blobc59575117c649e76842af21e4598901cfc4a2533
1 ;; -*- lexical-binding: t; -*-
3 (require 'checkdoc)
5 (defun markdown-test--checkdoc-file (file)
6 "Check FILE for document, comment, error style, and rogue spaces.
7 Taken from Emacs 25 source."
8 (with-current-buffer (find-file-noselect file)
9 (let ((checkdoc-diagnostic-buffer "*warn*"))
10 (checkdoc-current-buffer t))))
12 (markdown-test--checkdoc-file "../markdown-mode.el")