iwarapter / sonar-puppet

SonarQube plugin for Puppet code.
Other
26 stars 10 forks source link

Failure during OneIncludePerLineCheck #265

Closed camara-tech closed 8 years ago

camara-tech commented 8 years ago

Sonar-Runner execution fails with "Unable to analyze file" if an include is made with parenthesis,

Example:

include( "stdlib", "apache" ) 

Exception log indicates:

Caused by: java.lang.NullPointerException
    at com.iadams.sonarqube.puppet.checks.OneIncludePerLineCheck.visitNode(OneIncludePerLineCheck.java:55)

For Documentation on Include: https://docs.puppet.com/puppet/3.8/reference/function.html#include

Thanks for this plugin!

iwarapter commented 8 years ago

a vote for release has started which includes this fix:

https://groups.google.com/forum/m/#!topic/sonarqube/R37SU66fL0s