今天在公司換了一個CheckStyle xml文件。那么我嘗試直接import進去新的文件。
在我Check code的時候就爆了下面的錯誤
o: Failed during checkstyle configuration: Property 'fileExtensions' in module Checker does not exist, please check the documentation
查了一下,我的checkStyle 的xml里面確實是有fileExtensions 這個屬性啊。后來查了一下官方的文檔。
由於我當前的checkStyle版本是5.x的插件。但是關於fileExtensions只有在6.3或者以上才支持。所以一直都會有這樣的錯誤
SOLUTION:
升級到6.3或者以上的版本。這個錯誤就不存在了。