From 978048832cbc04c40b2c08b243abb31b02d3bf98 Mon Sep 17 00:00:00 2001 From: Toshiki Takeuchi Date: Wed, 26 Feb 2025 21:29:44 +0900 Subject: [PATCH] tflint: fix file options --- src/bosslint/linter/tflint.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bosslint/linter/tflint.clj b/src/bosslint/linter/tflint.clj index 9f7497e..fbeb565 100644 --- a/src/bosslint/linter/tflint.clj +++ b/src/bosslint/linter/tflint.clj @@ -10,9 +10,9 @@ (lint [files conf] (when (linter/check-command "tflint") - (let [args (concat ["tflint"] + (let [args (concat ["tflint" "--recursive"] (:command-options conf) - (map :absolute-path files))] + (mapcat #(vector "--filter" (:git-path %)) files))] (if (zero? (apply process/run args)) :success :error)))))