-
Notifications
You must be signed in to change notification settings - Fork 17
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
report-modules-plugins.py - static analysis of Ansible plugins #92
report-modules-plugins.py - static analysis of Ansible plugins #92
Conversation
For example, this is what the report looks like for the logging role:
|
a9e2eb3
to
65f28f8
Compare
Not sure why but it seems to be missing instances of json_query like these: https://github.com/linux-system-roles/network/blob/main/defaults/main.yml#L31 |
I happened to have this file community/general/tests/integration/targets/inventory_docker_machine/playbooks/test_inventory_1.yml in my .ansible/collections and this task [0] crashes report-modules-plugins.py when trying to parse {{.Name}} | {{.DriverName}} | {{.State}} | {{.URL}} | {{.Error}}` at [1].
[1]
The task does not belong to us. And I'm not sure this is a valid value (at least yamllint does not complain)... Do you think it's a syntax to be supported by the parser? |
No. That's golang template format. Hmm - will need a special exception for that one. |
3099a9b
to
f0cc8c7
Compare
Fixed. |
If the string cannot be parsed as a Jinja2 template, it will emit a warning like this:
|
Thank you, @richm. Verified. May I ask to fix one more? Again, it does not ours, but if a collection does not have a
|
a1ab306
to
461fe5b
Compare
I'd like to merge this, as other groups are starting to use this and want to contribute patches. Any objections? |
This script will analyze one or more Ansible roles and collections looking for plugins which are built-in or not, and produce a report.
461fe5b
to
200049a
Compare
This script will analyze one or more Ansible roles and collections
looking for plugins which are built-in or not, and produce a report.