简体   繁体   English

如何在 Sonar Qube 7.8 中导入 google java checkstyle?

[英]How can I import google java checkstyle in Sonar Qube 7.8?

I was trying to add google Java code style from checkstyle.我试图从 checkstyle 添加 google Java 代码样式。 but could not get how to do it.但不知道怎么做。 Is Google code style already covered and analyzed in checkstyle by defualt or we have to enable it.谷歌代码风格是否已经在 checkstyle 中被 defualt 覆盖和分析,或者我们必须启用它。 I have already installed CheckStyle on Sonarqube 7.8 Free edition我已经在 Sonarqube 7.8 免费版上安装了 CheckStyle

https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml

On SonarQube you can install plugins as Administrator.在 SonarQube 上,您可以以管理员身份安装插件。 ANd there is a CheckStyle plugin for SonarQube available.并且有一个适用于 SonarQube 的 CheckStyle 插件可用。

Get the correct Version from here which is compatible with your SonarQube Version此处获取与您的 SonarQube 版本兼容的正确版本

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM