branch: externals/vc-got commit 00eb9c8707477056ff57bfba0f4905912a8386fc Author: Omar Polo <o...@omarpolo.com> Commit: Omar Polo <o...@omarpolo.com>
add `lint' target --- Makefile | 7 +++++++ targets/lint.el | 26 ++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/Makefile b/Makefile index 68acf98..9d81ed1 100644 --- a/Makefile +++ b/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 diff --git a/targets/lint.el b/targets/lint.el new file mode 100644 index 0000000..f355796 --- /dev/null +++ b/targets/lint.el @@ -0,0 +1,26 @@ +;;; lint.el --- lint helper -*- lexical-binding: t; -*- + +;; Copyright (C) 2021 Omar Polo + +;; Author: Omar Polo <o...@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))))