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 1308e0a
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 filename.startswith((str(item.path), str(item.path.absolute()))):
lintables.add(Lintable(filename))


Expand Down

0 comments on commit 1308e0a

Please sign in to comment.