有谷歌java风格的checkstyle文件。https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
我正在寻找相应的
.editorconfig
文件。
同样的效果是安装扩展 https://github.com/jdneo/vscode-checkstyle
使用设置:
"java.configuration.updateBuildConfiguration": "automatic",
"checkstyle.enable": true,
"checkstyle.configurationPath": "config/checkstyle/checkstyle.xml",
"checkstyle.checkstylePath": "C:/dev/tools/checkstyle-8.8-all.jar"
现在Visual Studio Code根据我的checkstyle.xml文件在代码中显示警告