-
-
Notifications
You must be signed in to change notification settings - Fork 242
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
ANSIBLE_LINT enablement in Megalinter configurations is not checking the ansible yaml validations. #3424
Comments
I'm not sure that |
I want ansible-lint to lint the current folder of all files and sub-directory files. I don't want to mention any folder name to lint. it automatically needs to pick current folder |
@selvanayaki678 please can you try |
Will try.Thank you |
I have a slightly similar question: how ML detects to turn on ansible-lint? I have an ansible project with correct ansible collection directory structure and Please improve detecting ansible in the project: at least, enable them when ansible-lint default config is found. |
ie: projects following the directory structure now documented here https://docs.ansible.com/ansible/latest/tips_tricks/sample_setup.html#sample-directory-layout should work without adjustements. Is the current default config aligned to a previous usage pattern that no longer exists? |
Ok. I'm curious, whats wrong in my repo to automatically detect ansible? :) Most of ansible collections were usually made with the following structure. But if your ansible role named as 'common' the directory structure Why not also check the existence of |
Same issue here, did exactly what alexander did. Only when I changed |
So if I summarize, what would fit the requirement would be something like: Activate ansible-lint if either ANSIBLE_DIRECTORY is found, either .ansible-lint file is found at the root of the repo ? |
Yes. Not to complicate matters more but we set our LINTER_RULES_PATH to a subdirectory so if it takes that into account. |
I think, activate ansible-lint when Don't know what other scans ML performed, but expected that |
This issue has been automatically marked as stale because it has not had recent activity. If you think this issue should stay open, please remove the |
Describe the bug
ANSIBLE_LINT enablement in Megalinter configurations is not checking the ansible yaml validations.
enabled the ansible_lint in megalinter configuration file. In output getting like this
Expected behavior
It needs to check the all yaml files inside the directory and subdirectory as well.
Screenshots
Megalinter config file:
Additional context
Running meglinter as container
sudo docker run -v $(pwd):/tmp/lint -e MEGALINTER_CONFIG=.mega-linter.yml -e ANSIBLE_DIRECTORY=any -e ANSIBLE_ANSIBLE_LINT_DIRECTORY=any -e VALIDATE_ALL_CODEBASE=true -e ANSIBLE_ANSIBLE_LINT_FILE_EXTENSIONS=[] oxsecurity/megalinter:v7
**Output **
I have some wrong ANSIBLE format files inside that directory. But it's not giving anything in output.
Need a guidance for to do that
The text was updated successfully, but these errors were encountered: