1.Eclipse中,选择Help->Software Updates->Find and Install
2.选择 Search for new features to install 选择Next
3.选择 New Remote Site
4.输入更新地址
http://eclipse-cs.sourceforge.net/update5. 安装后重启
6:选中工程,右键选择checkstyle->check code with checkstyle,检查错误
7:window-show view-check---checksyle- violation
本回答被提问者和网友采纳