From a72fd55988ba1c5a00915668e247238adc469295 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulysse=20G=C3=A9rard?= Date: Fri, 20 Sep 2024 17:53:36 +0200 Subject: [PATCH] Use package-lint-main-file for main merlin package linting Suggested-by: Steve Purcell --- emacs/check.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/emacs/check.sh b/emacs/check.sh index 29f601beb..5618d07c9 100755 --- a/emacs/check.sh +++ b/emacs/check.sh @@ -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) \ @@ -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" \