-
Notifications
You must be signed in to change notification settings - Fork 637
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doesn't find .config/ansible-lint.yml in a git repo #2045
Labels
Comments
@evgeni Thanks for raising the issue. It will be great if do can do a pull request since you have already identified the problem area :-), we will be happy to review it. |
There you go #2059 I could not find any existing tests for the config file handling, so I've not added any new 🤷♀️ |
evgeni
added a commit
to evgeni/ansible-lint
that referenced
this issue
Apr 1, 2022
try both config names before checking .git Fixes: ansible#2045
evgeni
added a commit
to evgeni/ansible-lint
that referenced
this issue
Apr 1, 2022
try both config names before checking .git The bug was introduced in 64d29ab, but didn't affect anything until 1013149 added a second possible config file name Fixes: ansible#2045
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
If executed inside a git repo,
ansible-lint
doesn't find its config if it's called.config/ansible-lint.yml
..ansible-lint
works.Issue Type
Ansible and Ansible Lint details
OS / ENVIRONMENT
Fedora 35, but should be irrelevant
STEPS TO REPRODUCE
Desired Behavior
config is found
Actual Behavior
ansible-lint/src/ansiblelint/cli.py
Lines 99 to 109 in 61ed3ea
The
.git
detection happens inside the loop for.ansible-lint
and.config/ansible-lint.yml
, but should be outside.The text was updated successfully, but these errors were encountered: