如何让 Simian 生成一份漂亮的 HTML 报告,我可以通过电子邮件发送给团队中的每个人?
我试图发现重复代码的问题有多严重,因此我需要能够向团队中的每个人邮寄一份漂亮的报告(HTML、PDF 或 Word),其中列出了找到的所有重复项。
我如何创建这样的报告? (现阶段,我只是在寻找一种临时解决方案来帮助确定问题范围)
(我们的代码库位于 VB.NET 中,我在 Windows 7 上运行)
I am trying to discover how great our problem is with duplicate code, therefore I need to be able to mail a nice report (HTML, PDF, or word) to everyone on the team that lists all the duplicates that are found.
How do I create such a report? (At this stage, I am just looking for a one-of ad hock solution to help with scoping the problem)
(Our codebase is in VB.NET and I am running on Windows 7)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
就我个人而言,我会编写一个(Perl|在此处插入您选择的语言)程序,该程序获取 Simian 的输出并根据您的喜好输出 HTML 格式。
因此,您可以将其作为自动化 Simian 运行中的后处理步骤(我想您希望它每天晚上运行,或者根据请求运行,或者其他什么......无论如何,绝对是您想要自动化的东西,因为必须包括比如从代码存储库中获取所有模块的副本,在最后向邮件列表发送电子邮件等。)
我很抱歉,但我怀疑这里是否有真正的替代方案可以“自行推出”:我怀疑那里是一些公司(甚至操作系统项目)正在处理诸如“格式化代码复制实用程序的输出”之类的利基问题。
注意:考虑到 Simian 显然可以生成 XML 输出(通过使用“-formatter=xml”),这应该更容易
Personally I would wrote a (Perl|Insert your choice of language here) program that takes the output of Simian and spits off HTML formatted as you prefer.
So you can put it as a post-process step in your automated Simian run (I suppose you want this to run every night, or on request, or whatever... definitely something you want to automate, anyway, because will have to include things like getting a copy from your code repository for all modules, send an email to a mailing list at the end etc. etc.)
I am sorry but I doubt there is a real alternative to "roll your own" here: I doubt there are companies (or even OS projects) dealing with a niche problems like "formatting output of a code-duplication utility).
Note: this should be even easier considering Simian can apparently produce XML output (by using "-formatter=xml")