-
Notifications
You must be signed in to change notification settings - Fork 227
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
Update S100: Relax the rule restrictions #320
Comments
No longer needed since fix #577 |
I would still like to see this opened again, since there are more usecases then the two character acronym mentioned. For instance: If I would want to add SonarQube analysis to a codebase like that, I would have to turn off the rule, or edit every code file in the project, since these acronyms are in every namespace. There are more reasons to have casing exceptions, and currently there is no nice solution, while there was one in the FXCop / CA era. |
I am reopening this as it seems it is something wanted by our community. We may not necessarily fix this by supporting custom dictionaries, but maybe a different approach (like allowing acronym-like portions inside the name). Also, we may decide to close it again (I'm reopening it to bring it back into discussion internally) |
Result of an internal discussion:
|
I am changing the scope of the initial ticket which was from 2017. Such an old ticket should generally be closed as won't fix. By relaxing the restrictions, we'd be less noisy and our users wouldn't complain that much. Moreover, we don't plan to be a styling tool, so we'd raise on really obvious bad cases. |
RSPEC-100 SonarWay |
Is there a workaround for this warning? |
@Boggin The rule is not configurable yet. You can only disable it for now. |
It would be very interesting to be able to create a dictionary of exceptions. To we can define acronyms that are ignored in the rule. E.g: 'DTO' -> CustomDTO, API -> APIConfig |
@andrei-epure-sonarsource & @pavel-mikula-sonarsource Please keep us posted or leave a short remake if there is any chance to have a solution for this ticket in place. I really appreciate and thank you in advance. |
@HaGGi13 we have no plans to make it very configurable. We tend to avoid the necessity for configuration in our rules and make them as generic as possible (because they also run inside SonarLint, for example). How do you find the above suggestion:
This would mean that there will be lots of false negatives. However no false positives... |
@andrei-epure-sonarsource it's a proper approach/solution. What do you think? |
Source:
http://stackoverflow.com/questions/42759665/does-sonarlint-have-the-custom-dictionary-feature-like-the-fxcop
The text was updated successfully, but these errors were encountered: