racodond / sonar-gherkin-plugin

SonarQube Cucumber Gherkin Analyzer
GNU Lesser General Public License v3.0
36 stars 21 forks source link

Plugin not working when used with SonarCloud #67

Closed shiraz closed 6 years ago

shiraz commented 6 years ago

Hello,

So I wanted to use the plugin with SonarCloud, so I added the following in the pom.xml file of my Java project.

`

com.racodond.sonarqube.plugin.gherkin
        <artifactId>sonar-gherkin-plugin</artifactId>
        <version>1.7</version>
    </dependency>`

<sonar.sources>pom.xml,src/main/java,src/test/resources/features</sonar.sources> (properties section).

I ran the command, "mvn clean install sonar:sonar". The command ran successfully, but the Gherkin plugin did not run or find any issues.

Is there anything that I'm missing?

nixel2007 commented 6 years ago

Plugin must be installed on sonarcloud server, you can't (AFAIK) just add a dependency to get results on server.

shiraz commented 6 years ago

@nixel2007

How can we install the plugin in the sonarcloud server?

nixel2007 commented 6 years ago

You must be a sonarcloud admin :)

You can install your own sonarqube instance with plugins you need

racodond commented 6 years ago

Hi @MirzaSB,

Only SonarSource plugins are available on Sonarcloud. Thus, unfortunately, it is not possible to analyze Gherkin code on Sonarcloud.

David