Java代码检查工具Checkstyle常见输出结果

1Type is missing a javadoc commentClass    java

缺乏类型说明 spa

2“{” should be on the previous line .net

“{” 应该位于前一行 orm

3Methods is missing a javadoc comment get

方法前面缺乏javadoc注释 it

4Expected @throws tag for “Exception” io

在注释中但愿有@throws 的说明 form

5“.” Is preceeded with whitespace “.” class

前面不能有空格 import

6“.” Is followed by whitespace“.”

后面不能有空格

7“=” is not preceeded with whitespace

“=” 前面缺乏空格

8“=” is not followed with whitespace   

“=” 后面缺乏空格

9“}” should be on the same line    

“}” 应该与下条语句位于同一行

10Unused @param tag for “unused”

没有参数“unused”,不需注释

11Variable “CA” missing javadoc

变量“CA”缺乏javadoc注释

12Line longer than 80characters   

行长度超过80

13Line contains a tab character

行含有”tab” 字符

14Redundant “Public” modifier

冗余的“public” modifier

15Final modifier out of order with the JSL

suggestionFinal modifier的顺序错误

16Avoid using the “.*” form of import

Import格式避免使用“.*”

17Redundant import from the same package

从同一个包中Import内容

18Unused import-java.util.list

Import进来的java.util.list没有被使用

19Duplicate import to line 13

重复Import同一个内容

20Import from illegal package

从非法包中 Import内容

21“while” construct must use “{}”

“while” 语句缺乏“{}”

22Variable “sTest1” must be private and have accessor method

变量“sTest1”应该是private的,而且有调用它的方法

23Variable “ABC” must match pattern “^[a-z][a-zA-Z0-9]*$”      

变量“ABC”不符合命名规则“^[a-z][a-zA-Z0-9]*$”

24“(” is followed by whitespace    

“(” 后面不能有空格

25“)” is proceeded by whitespace

“)” 前面不能有空格

相关文章
相关标签/搜索