2011-11-07 101 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/ –