我如何让Simian生成一份不错的HTML报告,然后可以通过电子邮件将其发送给团队中的每个人? [英] How do I get Simian to produce a nice HTML report I can email to everyone on the team?

查看:286
本文介绍了我如何让Simian生成一份不错的HTML报告,然后可以通过电子邮件将其发送给团队中的每个人?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图发现重复代码的问题有多严重,因此我需要能够向小组中列出所有找到的重复项的每个人发送一份精美的报告(HTML,PDF或Word).

如何创建此类报告? (现阶段,我只是在寻找一种解决方案,以帮助解决问题)

(我们的代码库在VB.NET中,并且我在Windows 7上运行)

解决方案

我个人将编写一个(Perl |在此处插入您选择的语言)程序,该程序将Simian的输出并随您喜欢地将HTML格式化. >

因此,您可以将其作为自动Simian运行中的后处理步骤(我想您希望此程序每天晚上或根据要求运行,无论如何...绝对要自动运行,因为它将必须包括从代码存储库获取所有模块的副本,在末尾向电子邮件列表发送电子邮件等))

很抱歉,但是我怀疑这里是否有真正的替代方案:我怀疑有些公司(甚至是OS项目)正在处理诸如格式化代码复制实用程序的输出"之类的小问题.

注意:考虑到Simian显然可以产生XML输出(通过使用"-formatter = xml"),这应该更容易

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)

解决方案

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")

这篇关于我如何让Simian生成一份不错的HTML报告,然后可以通过电子邮件将其发送给团队中的每个人?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆