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

Change rule keys containing non standard characters #2596

Open
jenspopp opened this issue Nov 20, 2023 · 0 comments
Open

Change rule keys containing non standard characters #2596

jenspopp opened this issue Nov 20, 2023 · 0 comments
Labels

Comments

@jenspopp
Copy link

Due to a stupid question there is now a ticket to change rule key validation:

https://sonarsource.atlassian.net/browse/SONAR-21052

This affects all keys that have any character not in regex ^[\w]+$ which is [a-zA-Z0-9_]. This means, any key of e.g. the gcc compiler plugin will need to be changed to match this regex (e.g., replace - with _)

Others need to be checked...

The changes will need to mainly be in the rule definition / creation and in the scanner sending the issues. Any non matching character needs to be replaced before use in sonar.

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

No branches or pull requests

2 participants