apigee / apigeelint

Static code analysis for Apigee proxy bundles to encourage API developers to use best practices and avoid anti-patterns.
Apache License 2.0
91 stars 71 forks source link

apigeelint errors/warnings not showing in Gitlab CodeQuality tab #450

Closed spjohn85 closed 2 months ago

spjohn85 commented 2 months ago

I am integrating apigeelint in Gitlab Pipeline and followed the steps given in README, but I am not able to see the report in CodeQuality tab.

  1. Warnings are not being displayed (if there are no errors)
  2. Even errors when exist and is failing the pipeline, but on Code Quality it shows as below,

apigeelint-results.json

image

Any thoughts on how to get this done ?

ssvaidyanathan commented 2 months ago

@spjohn85 - am no GitLab expert. Is there a particular format the output should be for apigeelint? Apigeelint supports html too. You can run apigeelint .... -f html.js

and push that to your pipeline to use

spjohn85 commented 2 months ago

@ssvaidyanathan - Looks like Gitlab requires output in a specific format. Could this be supported ?

https://docs.gitlab.com/ee/ci/testing/code_quality.html#implement-a-custom-tool

spjohn85 commented 2 months ago

Looks like its supported -f codeclimate helps

ssvaidyanathan commented 2 months ago

Thats good to know.. Didnt know that format would work..