我想下面的因素生成月度报告的基础什么是声纳数据库结构?
- 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
是否太多适合您的需求了?[报告插件](http://docs.codehaus.org/display/SONAR/Sonar+PDF+Plugin)? – oers 2012-02-08 13:03:14
哦,请在您以前的问题上为您的努力提供帮助并[请接受答案](http://meta.stackexchange.com/a/5235/160062)。 – oers 2012-02-08 13:06:04