checkstyle / sonar-checkstyle

Support on Checkstyle in SonarQube. Officially transfered from https://github.com/SonarQubeCommunity/sonar-checkstyle
GNU Lesser General Public License v3.0
171 stars 70 forks source link

Can you provide me with a google-check.xml configuration file corresponding to version 10.12.5? #525

Closed JudeWangPP closed 2 months ago

JudeWangPP commented 2 months ago

Sonar version: [[9.7]] Checkstyle sonar plugin version: [[10.12.5]]

Steps to reproduce or description of problem:

romani commented 2 months ago

config is in this repository - https://github.com/checkstyle/checkstyle/releases https://github.com/checkstyle/checkstyle/releases/tag/checkstyle-10.12.5 https://github.com/checkstyle/checkstyle/tree/checkstyle-10.12.5 https://github.com/checkstyle/checkstyle/blob/checkstyle-10.12.5/src/main/resources/google_checks.xml

rnveach commented 2 months ago

@romani Is there no way for sonar to use the embedded google config which comes with CS directly?

romani commented 2 months ago

@muhlba91 , can you answer this question? I didn't remember. There was import of config some time ago, but I might be wrong.

muhlba91 commented 2 months ago

this was removed as part of adding the possibility to customize most checks through templates, and, if i remember it right, because SQ doesn't offer the export functionality anymore in the same way they did before (either way, a customized xml file would be didficult to import due to all possible templates).

rnveach commented 2 months ago

@muhlba91 thanks.

@JudeWangPP You should always use the same version of google config as your current CS version. Using any other version could lead to compatibility issues.

JudeWangPP commented 2 months ago

Thank you all for perfectly resolving my issue.