[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: 指规则所适用的范围。
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: 指规则所适用的范围。