Skip to content

Commit

Permalink
Use package-lint-main-file for main merlin package linting
Browse files Browse the repository at this point in the history
Suggested-by: Steve Purcell <[email protected]>
  • Loading branch information
voodoos committed Sep 20, 2024
1 parent 49d97d5 commit a72fd55
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion emacs/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ NEEDED_PACKAGES="package-lint company iedit auto-complete compat"
ELS_TO_CHECK=*.el
# To reduce the amount of false positives we only package-lint files
# that are actual installable packages.
PKGS_TO_CHECK="merlin.el merlin-ac.el merlin-company.el merlin-iedit.el merlin-cap.el tests/merlin-cap-test.el"
PKGS_TO_CHECK="merlin-ac.el merlin-company.el merlin-iedit.el"

INIT_PACKAGE_EL="(progn \
(require 'package) \
Expand Down Expand Up @@ -51,6 +51,17 @@ EMACS_PACKAGE_LINT_IGNORE=1
-f package-lint-batch-and-exit \
${PKGS_TO_CHECK} || [ -n "${EMACS_PACKAGE_LINT_IGNORE:+x}" ]


PKGS_TO_CHECK="merlin.el merlin-cap.el"

"$EMACS" -Q -batch \
--eval "$INIT_PACKAGE_EL" \
-L . \
--eval "(require 'package-lint)" \
--eval "(setq package-lint-main-file \"merlin.el\")" \
-f package-lint-batch-and-exit \
${PKGS_TO_CHECK} || [ -n "${EMACS_PACKAGE_LINT_IGNORE:+x}" ]

# Run tests in batch mode.
"$EMACS" -Q -batch \
--eval "$INIT_PACKAGE_EL" \
Expand Down

0 comments on commit a72fd55

Please sign in to comment.