2011-11-07 100 views

回答

8
<module name="LineLength"> 
    <property name="max" value="140"/> 
</module> 

应采取的comments护理以及

+0

感谢tolitius,该文件可能我把这个吗? –

+0

当然。你通常会有一个'checkstyle.xml'配置文件(你也可以将其作为命令行参数提供)参见docs [here](http://checkstyle.sourceforge.net/config.html)。如果您使用任何checkstyle插件(例如Eclipse),您可以看到它指向哪个文件。这是一个[示例](http://programmers-blog.com/2008/05/04/a-reasonable-checkstyle-xml)这个配置文件。 – tolitius

+0

感谢哥们,我也对此做了一个小小的评论。 http://java.sg/allow-project-specific-settings-in-checkstyle-plugin/ –