Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When importing google-checks.xml, the API reports an error. How to solve this? Must I manually create rules based on the template first? #526

Open
JudeWangPP opened this issue Jun 19, 2024 · 1 comment

Comments

@JudeWangPP
Copy link

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

Steps to reproduce or description of problem:
Quality Profiles -> create -> choose:google_checks10.12.5.xml -> create
/api/qualityprofiles/create response :
{
"errors": [
{
"msg": "Rule template can't be activated on a Quality profile: checkstyle:com.puppycrawl.tools.checkstyle.checks.imports.AvoidStarImportChecktemplate"
}
]
}

@JudeWangPP JudeWangPP changed the title When importing google-checks.xml, the API reports an error: { "errors": [ { "msg": "Rule template can't be activated on a Quality profile: checkstyle:com.puppycrawl.tools.checkstyle.checks.imports.AvoidStarImportChecktemplate" } ] } How to solve this? Must I manually create rules based on the template first? When importing google-checks.xml, the API reports an error. How to solve this? Must I manually create rules based on the template first? Jun 19, 2024
@muhlba91
Copy link
Contributor

muhlba91 commented Jul 8, 2024

you need to create a profile/config in SQ where you basically replicate the contents of the xml-file directly in SQ.
there's no support for importing an existing configuration (see #525).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants