Skip to content

Commit 5bce74c

Browse files
committed
filter flycheck temp files from erk--dir-elisp-files
Signed-off-by: Psionik K <73710933+psionic-k@users.noreply.github.com>
1 parent 22fed55 commit 5bce74c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lisp/erk.el

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,11 @@ Returns FUN if it's bound and within the project."
233233
"Return a list of the elisp files in DIR.
234234
Ignore autoloads."
235235
(->>
236-
(directory-files dir nil (rx ".el" string-end))
237-
(--reject (string-match-p (rx "autoloads.el" string-end) it))))
236+
(directory-files dir nil (rx (literal ".el") string-end))
237+
(--reject (string-match-p (rx (literal "autoloads.el") line-end) it))
238+
;; flycheck creates a short-lived file starting with flycheck_
239+
;; Will heisenbug you.
240+
(--reject (string-match-p (rx line-start (literal "flycheck_")) it))))
238241

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

0 commit comments

Comments
 (0)