简体   繁体   English

如何比较两个Java文件的检查样式?

[英]how can i compare check style of two java file?

i want to compare two java files and after compare then ,i want check what are new check style violation has been made in new file than previous one. 我想比较两个java文件,然后比较之后,我要检查新文件中比以前的文件有哪些新的检查样式违例。 is there any api which provide this service? 有提供此服务的api吗? please help me to find a solution. 请帮助我找到解决方案。 thanks in advance... 提前致谢...

What you can do here is to generate a checkstyle report of particular file, and then compare it. 您可以在此处生成特定文件的样式检查报告,然后进行比较。 Please look at [Checkstyle Report][1] 请查看[Checkstyle报告] [1]

[1]: How to generate Checkstyle reports? [1]: 如何生成Checkstyle报告? . Once you have the report, you can easily compare the html/text file and generate the diff. 获得报告后,您可以轻松比较html / text文件并生成差异。

There are many comparison tools. 有很多比较工具。 But i personally recommend Beyond Compare and WinMerge may be fulfill your desire. 但是我个人建议Beyond CompareWinMerge可能会满足您的需求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM