【发布时间】:2012-02-29 21:55:28
【问题描述】:
我正在尝试根据以下因素生成月度报告
- LoC(代码行)
- 遵守规则 %
- 评论%
- 公开记录的 API %
- 安全违规
- 违规(不包括信息)
- 重复行 %
我试图检查声纳数据库中的实体关系,所有表都是独立的。 我不确定我应该从哪个表中获取值以便生成报告。
对于下面的提示,查询被提及
提示:
select proj.name as ClassName, -- Class Name for which violation has been found out
proj.long_name as LongName, -- Long Class Name i.e. with package for which violation has been found out
rf.failure_level as ErrorLevel, -- Error level of the violation
rf.message as Violation, -- Cause of Violation
rf.line as LineNumber, -- Line number of the class file
ru.name ViolationName, -- Violation Description
ru.plugin_name PluginType -- Plugin tool by which this error has been detected i.e. findbug, PMD, etc.
-- ,ru.description -- (if violation description is required we can add this column) from projects proj inner join snapshots snap on proj.id = snap.project_id inner join rule_failures rf on rf.snapshot_id = snap.id inner join rules ru on ru.id = rf.rule_id
【问题讨论】:
-
report plugin 是否满足您的需求?
-
哦,请感谢人们为帮助您所做的努力和accept answers您之前的问题。
标签: sonarqube