You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The whole logic of this plugin is bad and outdated.
Cause
The newer versions of ansible-lint offer a json formatted output for integration with tools and that formatting contains the path of the analyzed files. This way you wouldn't need to iterate over the InputFiles set object.
Correct logic of analyzing the playbooks with ansible-lint
Using the command ansible-lint -f json <sources>/ instead of specified paths would eliminate the huge overhead and also because of -f json instead of -p the integration to new versions would be a whole lot easier.
Reason of this issue
I tried to rewrite it on my local repository but because of the deprecated version tests I could not get it to test or build.
This is the only sonarqube integration plugin for ansible and since this exists noone wants to write a correct, working one and they just don't care about the overhead.
Hi
The whole logic of this plugin is bad and outdated.
Cause
The newer versions of ansible-lint offer a json formatted output for integration with tools and that formatting contains the path of the analyzed files. This way you wouldn't need to iterate over the InputFiles set object.
Correct logic of analyzing the playbooks with ansible-lint
Using the command
ansible-lint -f json <sources>/
instead of specified paths would eliminate the huge overhead and also because of-f json
instead of-p
the integration to new versions would be a whole lot easier.Reason of this issue
File to be fixed:
sonar-ansible-api/src/main/java/com/github/sbaudoin/sonar/plugins/ansible/rules/AbstractAnsibleSensor.java
at:
I am willing to help you integrate with newer versions and with the correct logic if you can create an environment where the current build runs.
The text was updated successfully, but these errors were encountered: