From d200c16aa5dc031eea30a62a9260c44f3e16b117 Mon Sep 17 00:00:00 2001 From: shatakshiiii Date: Tue, 18 Jul 2023 11:55:53 +0530 Subject: [PATCH] Include filepaths starting from /home/shamishr in lintables --- src/ansiblelint/file_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ansiblelint/file_utils.py b/src/ansiblelint/file_utils.py index 15c92d29838..a1207b21d18 100644 --- a/src/ansiblelint/file_utils.py +++ b/src/ansiblelint/file_utils.py @@ -513,7 +513,7 @@ def expand_dirs_in_lintables(lintables: set[Lintable]) -> None: for item in copy.copy(lintables): if item.path.is_dir(): for filename in all_files: - if filename.startswith(str(item.path)): + if str(item.path) in filename: lintables.add(Lintable(filename))