File: run_linter.sh

package info (click to toggle)
kotlin-mode 0.0~git20230123.fddd747-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 960 kB
  • sloc: lisp: 3,453; sh: 69; makefile: 45
file content (19 lines) | stat: -rwxr-xr-x 527 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

# Run linter.  Used in Makefile.

if ! [ -d ".cask/$(./scripts/invoke_cask.sh eval '(princ emacs-version)')/elpa/elisp-lint-"* ]
then
    ./scripts/invoke_cask.sh install || exit 1
fi

./scripts/invoke_cask.sh emacs --version || exit 1
rm -f *.elc test/*.elc || exit 1
rm -f *-autoloads.el || exit 1
./scripts/invoke_cask.sh emacs --batch -Q \
  -l elisp-lint.el \
  --eval '(setq elisp-lint--debug t)' \
  -f elisp-lint-files-batch \
  *.el || exit 1
rm -f *.elc test/*.elc || exit 1
rm -f *-autoloads.el || exit 1