Sonar实践问题记录(二)

查询字段的时间戳格式:

Hi, the correct format is yyyy-MM-dd'T'HH:mm:ssZ, so in your example createdAfter=2017-10-19T13:00:00+0200 is correct, but you need to url-encode the + character to %2b : createdAfter=2017-10-19T13:00:00%2b0200


Issue包括:Bug、Vulnerability、Code_Smell

如:查询包含了Blocker级别的所有Issue:
http://sonar.fxxxktest.com/api/issues/search?componentKeys=se%3Asearch-frontend-springboot&resolved=false&ps=500&createdAfter=2019-10-22&severities=BLOCKER&types=BUG,VULNERABILITY,CODE_SMELL

返回的内容将包括具体的内容。


SonarQube 指标定义 几个主要的查询API

api/issues
Read and update issues.

api/measures
Get components or children with specified measures.

api/metrics
Get information on automatic metrics, and manage custom metrics. See also api/custom_measures.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容