Skip to content

Commit cadc383

Browse files
authored
Add .cache folder to default exclude list (#1479)
To avoid false-positive results from users did not add .cache folder to their .gitignore file, include it in the implicit exclude_paths. Fixes: #1463
1 parent 333b4e0 commit cadc383

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.ansible-lint

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# .ansible-lint
22
exclude_paths:
3+
- .cache/ # implicit unless exclude_paths is defined in config
34
- .github/
45
# parseable: true
56
# quiet: true

src/ansiblelint/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ def merge_config(file_config: Dict[Any, Any], cli_config: Namespace) -> Namespac
314314
)
315315
# maps lists to their default config values
316316
lists_map = {
317-
'exclude_paths': [],
317+
'exclude_paths': [".cache"],
318318
'rulesdir': [],
319319
'skip_list': [],
320320
'tags': [],

0 commit comments

Comments
 (0)