`
7wolfs
  • 浏览: 178501 次
  • 性别: Icon_minigender_1
  • 来自: 济南
社区版块
存档分类
最新评论

CheckStyle

    博客分类:
  • Java
阅读更多
一、Install CheckStyle plugin for Eclipse

The used eclipse is eclipse-jee-helios-win32.

1.  download checkstyle plugins on url of http://sourceforge.net/projects/eclipse-cs/files/Eclipse%20Checkstyle%20Plug-in/

2. copy directories of 'features' and 'plugins' in checkstyle plugin into corresponding directories in Eclipse

3. restart Eclipse

Use CheckStyle
1. right-click project, click property
2. on popup window, select CheckStyle, enable 'Checkstyle active for this project'
3. In tab of 'Local Check Configuration', click button of 'New...' to load self-defined checkstyle configuration file.


二、使用说明
checkstyle: 在checkstyle的Configuration的窗口中,选择左边列表中的某一项,点'Add...->'按钮,将放入右边的group对应下的列表中,将他的Enabled置为选中状态,此时该组中的这条规则项为启用状态。若要移走该规则,在右边列表中选中规则,点击'<-Remove'按钮。
选中checkstyle的某项规则,在Description的区域中会显示相关的说明。
Token: 指规则所适用的范围。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics