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

「)」 前面不能有空格

相關文章
相關標籤/搜索