How do I get Simian to produce a nice HTML report I can email to everyone on the team?

你离开我真会死。 提交于 2019-12-11 15:43:03

问题


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)


回答1:


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



来源:https://stackoverflow.com/questions/2272389/how-do-i-get-simian-to-produce-a-nice-html-report-i-can-email-to-everyone-on-the

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!