emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/flycheck 7a6398ea35: yaml-actionlint: only allow inside Gi


From: ELPA Syncer
Subject: [nongnu] elpa/flycheck 7a6398ea35: yaml-actionlint: only allow inside GitHub workflows dir
Date: Fri, 26 Jul 2024 01:00:05 -0400 (EDT)

branch: elpa/flycheck
commit 7a6398ea3538a898eba0276f0f89b2f878325a89
Author: Eric Berquist <eric.berquist@gmail.com>
Commit: Bozhidar Batsov <bozhidar@batsov.dev>

    yaml-actionlint: only allow inside GitHub workflows dir
---
 flycheck.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/flycheck.el b/flycheck.el
index 1491ef0152..a702c785be 100644
--- a/flycheck.el
+++ b/flycheck.el
@@ -9234,7 +9234,11 @@ Uses GCC's Fortran compiler gfortran.  See URL
 See URL https://github.com/rhysd/actionlint/.";
   :command ("actionlint" "-oneline" source)
   :error-patterns ((error line-start (file-name) ":" line ":" column ": " 
(message) line-end))
-  :modes (yaml-mode yaml-ts-mode))
+  :modes (yaml-mode yaml-ts-mode)
+  :predicate (lambda ()
+               (string-match-p
+                (rx (or ".github/workflows" ".github\\workflows"))
+                (buffer-file-name))))
 
 (flycheck-define-checker go-gofmt
   "A Go syntax and style checker using the gofmt utility.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]