CheckStyle

[b]一、Install CheckStyle plugin for Eclipse [/b]

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

[b]Use CheckStyle[/b]
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.


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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值