Skip to content

Commit

Permalink
Add .cache folder to default exclude list (#1479)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ssbarnea committed Mar 19, 2021
1 parent 333b4e0 commit cadc383
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .ansible-lint
@@ -1,5 +1,6 @@
# .ansible-lint
exclude_paths:
- .cache/ # implicit unless exclude_paths is defined in config
- .github/
# parseable: true
# quiet: true
Expand Down
2 changes: 1 addition & 1 deletion src/ansiblelint/cli.py
Expand Up @@ -314,7 +314,7 @@ def merge_config(file_config: Dict[Any, Any], cli_config: Namespace) -> Namespac
)
# maps lists to their default config values
lists_map = {
'exclude_paths': [],
'exclude_paths': [".cache"],
'rulesdir': [],
'skip_list': [],
'tags': [],
Expand Down

0 comments on commit cadc383

Please sign in to comment.