spectral icon indicating copy to clipboard operation
spectral copied to clipboard

Integrate Spectral with Sonarqube

Open michaelsonnleitner opened this issue 2 years ago • 5 comments

User story. As a Developer, I would like to get issues displayed in Sonarqube if my openapi spec does not apply to the provided spectral ruleset.

Is your feature request related to a problem? Sonarqube is a common tool in java developer lifecycle and has no Openapi Rules per default. There are also no additional plugins available which would do that job. So currently no openapi yamls can be checked. Spectral can lint openapi yamls but has no integration to sonarqube.

Describe the solution you'd like create an sonarqube plugin which integrates spectral during code analyse.

michaelsonnleitner avatar Apr 29 '23 12:04 michaelsonnleitner

That would be awesome. We like the spectral linter and its customization features. Previously, we used the Gitlab CodeQuality feature and wrote a script to parse the spectral output; I wonder if there is a feature like this in Sonarqube. Else, a plugin would be super helpful.

lhimstedt avatar Sep 14 '23 11:09 lhimstedt