Skip to content

Commit

Permalink
Respect `package-lint-main-file' in parent file also
Browse files Browse the repository at this point in the history
  • Loading branch information
leotaku committed Jan 5, 2024
1 parent 6893f2b commit a31c361
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions elisp-check.el
Original file line number Diff line number Diff line change
Expand Up @@ -354,12 +354,12 @@ order to hook `byte-compile-file' into the CI message mechanism."

(defun elisp-check-package-lint (&rest other)
"Run a `package-lint-buffer' check on the current and OTHER buffers."
(let ((default-main-file (buffer-file-name)))
(let ((parent-main-file (or package-lint-main-file (buffer-file-name))))
(elisp-check--package-lint-buffer)
(dolist (buffer other)
(with-current-buffer buffer
(let ((package-lint-main-file
(or package-lint-main-file default-main-file)))
(or package-lint-main-file parent-main-file)))
(elisp-check--package-lint-buffer))))))

(defun elisp-check--package-lint-buffer ()
Expand Down

0 comments on commit a31c361

Please sign in to comment.