Commit Diff


commit - 186da174fc4059562470244ef6ccd6a5a85b9814
commit + 00eb9c8707477056ff57bfba0f4905912a8386fc
blob - 68acf98232b6d7e8aaef75c327e3280e38f8d46b
blob + 9d81ed1689d31d96b908f848d8e627a50ee54ed4
--- Makefile
+++ Makefile
@@ -1,7 +1,14 @@
 EMACS =		emacs
 
+.PHONY: all compile lint clean
+
+all: compile lint
+
 compile: vc-got.elc
 
+lint:
+	${EMACS} -Q --batch -L . -l targets/lint.el
+
 clean:
 	rm -f *.elc
 
blob - /dev/null
blob + f355796e81e26dabcb33833cfe2569013565c341 (mode 644)
--- /dev/null
+++ targets/lint.el
@@ -0,0 +1,26 @@
+;;; lint.el --- lint helper                          -*- lexical-binding: t; -*-
+
+;; Copyright (C) 2021  Omar Polo
+
+;; Author: Omar Polo <op@omarpolo.com>
+
+;; This program is free software; you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation, either version 3 of the License, or
+;; (at your option) any later version.
+
+;; This program is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;; GNU General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with this program.  If not, see <https://www.gnu.org/licenses/>.
+
+(require 'checkdoc)
+
+(let ((checkdoc-diagnostic-buffer "*warn*"))
+  (dolist (file '("vc-got.el"))
+    (with-current-buffer (find-file-noselect file)
+      (eval-buffer)
+      (checkdoc-current-buffer t))))