1. 程式人生 > >Eclipse Checkstyle外掛安裝

Eclipse Checkstyle外掛安裝

1.

下載checkstyle離線安裝包;

http://sourceforge.net/projects/eclipse-cs/

2.

下載完成後將壓縮包中features資料夾和plugins資料夾的複製到eclipse中的根目錄中覆蓋;

3.

開啟eclipse,Window-->Preferences,如果列表中出現了checkstyle的選單,則表示安裝成功了。

4.

Checkstyle全域性配置

Window -->Preferences,選擇checkstyle選單,增加專案組統一的規則檔案,並設定為預設規則。

5.

Checkstyle專案配置