Skip to content

Commit

Permalink
Include filepaths starting from home directory in lintables
Browse files Browse the repository at this point in the history
  • Loading branch information
shatakshiiii committed Jul 18, 2023
1 parent 7e32b1a commit 984ca0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ansiblelint/file_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))


Expand Down

0 comments on commit 984ca0b

Please sign in to comment.