Skip to content

Commit

Permalink
lint files according to package structure
Browse files Browse the repository at this point in the history
filter or select tests, autoloads.  use correct directories.

Signed-off-by: Psionik K <73710933+psionic-k@users.noreply.github.com>
  • Loading branch information
psionic-k committed Dec 24, 2022
1 parent 1bf7816 commit b6264ba
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/run-shim.el
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,11 @@
;; "--no-check-declare"
)
(seq-filter
(lambda (s) (not (string-match-p ".*autoloads.*.el$" s)))
(file-expand-wildcards "../lisp/*.el")))))
(lambda (s) (not (or (string-match-p "*-test.el$" s)
(string-match-p ".*autoloads.*.el$" s))))
(file-expand-wildcards
(if (file-exists-p "lisp/") "lisp/*.el"
"*.el"))))))

(message "ARGS: %s" command-line-args-left)

Expand Down Expand Up @@ -125,8 +128,12 @@
;; "--no-check-declare"
)
(seq-filter
(lambda (s) (not (string-match-p ".*autoloads.*.el$" s)))
(file-expand-wildcards "../test/*.el")))))
(lambda (s) (string-match-p "*-test.el$" s))
(file-expand-wildcards
(if (file-exists-p "test/") "test/*.el"
"*-test.el"))))))

(message "ARGS: %s" command-line-args-left)

;; (setq elisp-lint-ignored-validators nil
;; elisp-lint-file-validators nil
Expand Down

0 comments on commit b6264ba

Please sign in to comment.