Blame


1 00eb9c87 2021-08-17 op ;;; lint.el --- lint helper -*- lexical-binding: t; -*-
2 00eb9c87 2021-08-17 op
3 00eb9c87 2021-08-17 op ;; Copyright (C) 2021 Omar Polo
4 00eb9c87 2021-08-17 op
5 00eb9c87 2021-08-17 op ;; Author: Omar Polo <op@omarpolo.com>
6 00eb9c87 2021-08-17 op
7 00eb9c87 2021-08-17 op ;; This program is free software; you can redistribute it and/or modify
8 00eb9c87 2021-08-17 op ;; it under the terms of the GNU General Public License as published by
9 00eb9c87 2021-08-17 op ;; the Free Software Foundation, either version 3 of the License, or
10 00eb9c87 2021-08-17 op ;; (at your option) any later version.
11 00eb9c87 2021-08-17 op
12 00eb9c87 2021-08-17 op ;; This program is distributed in the hope that it will be useful,
13 00eb9c87 2021-08-17 op ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
14 00eb9c87 2021-08-17 op ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 00eb9c87 2021-08-17 op ;; GNU General Public License for more details.
16 00eb9c87 2021-08-17 op
17 00eb9c87 2021-08-17 op ;; You should have received a copy of the GNU General Public License
18 00eb9c87 2021-08-17 op ;; along with this program. If not, see <https://www.gnu.org/licenses/>.
19 00eb9c87 2021-08-17 op
20 00eb9c87 2021-08-17 op (require 'checkdoc)
21 00eb9c87 2021-08-17 op
22 00eb9c87 2021-08-17 op (let ((checkdoc-diagnostic-buffer "*warn*"))
23 00eb9c87 2021-08-17 op (dolist (file '("vc-got.el"))
24 00eb9c87 2021-08-17 op (with-current-buffer (find-file-noselect file)
25 00eb9c87 2021-08-17 op (eval-buffer)
26 00eb9c87 2021-08-17 op (checkdoc-current-buffer t))))