Skip to content

Commit

Permalink
filter flycheck temp files from erk--dir-elisp-files
Browse files Browse the repository at this point in the history
Signed-off-by: Psionik K <73710933+psionic-k@users.noreply.github.com>
  • Loading branch information
psionic-k committed Nov 6, 2023
1 parent 22fed55 commit 5bce74c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lisp/erk.el
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,11 @@ Returns FUN if it's bound and within the project."
"Return a list of the elisp files in DIR.
Ignore autoloads."
(->>
(directory-files dir nil (rx ".el" string-end))
(--reject (string-match-p (rx "autoloads.el" string-end) it))))
(directory-files dir nil (rx (literal ".el") string-end))
(--reject (string-match-p (rx (literal "autoloads.el") line-end) it))
;; flycheck creates a short-lived file starting with flycheck_
;; Will heisenbug you.
(--reject (string-match-p (rx line-start (literal "flycheck_")) it))))

(defun erk--dir-features (dir)
"Return list of features provided by elisp files in DIR.
Expand Down

0 comments on commit 5bce74c

Please sign in to comment.