File: checkdoc-batch.el

package info (click to toggle)
markdown-mode 2.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,232 kB
  • sloc: lisp: 15,415; makefile: 60; sh: 17
file content (12 lines) | stat: -rw-r--r-- 382 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
;; -*- lexical-binding: t; -*-

(require 'checkdoc)

(defun markdown-test--checkdoc-file (file)
  "Check FILE for document, comment, error style, and rogue spaces.
Taken from Emacs 25 source."
  (with-current-buffer (find-file-noselect file)
    (let ((checkdoc-diagnostic-buffer "*warn*"))
      (checkdoc-current-buffer t))))

(markdown-test--checkdoc-file "../markdown-mode.el")