checkstyle插件问题总结
2012-12-08 16:54
246 查看
1.File contains tab characters (this is the first instance). :这一行有tab行距,用鼠标选中tab打出的空白处,ctrl+f,全部修改成双空格;
2.method def modifier at indentation level 2 not at correct indentation, 4:和第一点一样,checkstyle要求距离边距4个空格,把这行的前面所有空白去掉,然后敲4个空格就OK;
3.Line is longer than 120 characters (found 123).: 文字超长,换个行啥的就OK;
4.Static variable definition in wrong order.:顺序不对,需要调整:window-->preferences-->查找sort-->menbers sort order:上面的顺序调整一下,一般types第一位,static在普通的前面,方法最后,方法里构造在最前面;下面的勾上,顺序:public,protected,default,private;上面:经供参考:types,static fields,fields,initializers,constructors,static
initializers,static methods,methods,配置完成后在需要的类里面:右键-->source-->sort-->打钩-->确定,再次check;
5.Javadoc has empty description section. 没注释啊魂淡;
6.'XXXX' hides a field.:命名重复,换个名,推荐alt+shift+r改;
7.method call child at indentation level 8 not at correct indentation, 12:当前赋值可能方式不对,换个赋值方式瞧瞧;
8.Don't use trailing comments.:直译:不要搞笑吧亲;
9.'static' modifier out of order with the JLS suggestions.:老实点把final放在static 后面;
10.Unnecessary parentheses around assignment right-hand side.:有个不必要的括号存在;
2.method def modifier at indentation level 2 not at correct indentation, 4:和第一点一样,checkstyle要求距离边距4个空格,把这行的前面所有空白去掉,然后敲4个空格就OK;
3.Line is longer than 120 characters (found 123).: 文字超长,换个行啥的就OK;
4.Static variable definition in wrong order.:顺序不对,需要调整:window-->preferences-->查找sort-->menbers sort order:上面的顺序调整一下,一般types第一位,static在普通的前面,方法最后,方法里构造在最前面;下面的勾上,顺序:public,protected,default,private;上面:经供参考:types,static fields,fields,initializers,constructors,static
initializers,static methods,methods,配置完成后在需要的类里面:右键-->source-->sort-->打钩-->确定,再次check;
5.Javadoc has empty description section. 没注释啊魂淡;
6.'XXXX' hides a field.:命名重复,换个名,推荐alt+shift+r改;
7.method call child at indentation level 8 not at correct indentation, 12:当前赋值可能方式不对,换个赋值方式瞧瞧;
8.Don't use trailing comments.:直译:不要搞笑吧亲;
9.'static' modifier out of order with the JLS suggestions.:老实点把final放在static 后面;
10.Unnecessary parentheses around assignment right-hand side.:有个不必要的括号存在;
相关文章推荐
- Vim常见指令与问题总结(五)---windowns下vim离线安装插件及介绍
- 使用mybatis分页插件PageHelper5.0.0遇到的问题总结
- eclipse中pydev插件安装出错及环境配置问题总结
- Lockness插件问题总结
- Eclipse安装EclEmma插件及问题总结
- Android中so使用知识和问题总结以及插件开发过程中加载so的方案解析
- eclipse中集成maven插件时的问题总结
- Android中so使用知识和问题总结以及插件开发过程中加载so的方案解析
- 使用mybatis分页插件PageHelper5.0.0遇到的问题总结
- 总结sublime c++编译环境搭建 | 中文乱码问题解决方案 |sidebar配置 |sublime最佳插件列表|最佳主题方案
- Eclipse 插件开发遇到问题心得总结
- Eclipse 插件开发遇到问题心得总结
- Eclipse导入Checkstyle 插件问题
- eclipse插件开发的发布过程中遇到的问题与解决方法总结
- ionic工程引入cordova plugin camera 插件编译报错问题总结
- Xcode常用插件总结及问题解决
- 开发整理-jquery datatable插件问题总结
- myslide 插件开发知识点总结和 css3 动画性能问题的研究
- Redhat 布置eclipse svn插件之后访问svn服务的问题总结
- myslide 插件开发知识点总结和 css3 动画性能问题的研究