I use the following test environments, but got CheckStyle exception on "Unexpected token: import"
May I do something wrong?
It works on other java statements but import, is it a limitation or not support or forbidden usage?
@SuppressWarnings("checkstyle:avoidstartimport")
import android.*;
config.xml
<module name="Checker">
<module name="TreeWalker">
<module name="SuppressWarningsHolder">
</module>
<module name="SuppressWarningsFilter">
</module>
java -jar checkstyle-5.7-all.jar -c config.xml -f xml -o output.xml -r src
Thanks a lot