-
Notifications
You must be signed in to change notification settings - Fork 7
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
Gh 66 substituting for internal members #69
Conversation
…ke calls - csharp
same diagnostic id for all internal analyzers
Pull Request Test Coverage Report for Build uaxvm5k358vombb5
💛 - Coveralls |
Hi @dtchepak as discussed in #66 detecting internal member substitution is done as one diagnostic. Additionally, I've changed the category name to "Non-substitutable member" and also adjusted relevant items in the documentation. As far as I can tell (checked on VS2017), changing category name doesn't influence the suppression, so if someone used suppression old category name
this will still work, even though we recommend now using the new category name. If you have time please double-check that, because if I am wrong this will be a breaking change. |
@tpodolak As far as I can tell from the documentation, the category name will only be used if there are conflicts with other rule identifiers? In my test project I can replace the category with If I'm correct about the category only being used in that case, next time we update categories maybe we should just make them all |
@dtchepak I am not sure if I understand you correctly, are you suggesting to rename all categories to NSubstitute.Analyzers, or to prefix them all with NSubstitute.Analyzers? |
@tpodolak I'm not sure if it should be a prefix or the full category. I don't really understand what the category is for. We can't suppress based on category? From the MS docs it looks like it may just be used to differentiate conflicting codes? I've seen categories like I really don't know about any of this, I just thought I'd ask the question as I noticed that the category listed in the suppression doesn't seem to make any difference at all, which makes me wonder if it is of any use at all! 😂 |
For me, the categories are just logical grouping of similar diagnostics. I would say there are targeting the end users rather anything else. I don't think we can suppress by category so it looks like they are only used in case of conflicts. NSubstitute.Usage, NSubstitute.ArgumentSpecification sounds good for me, definitely better than the current one. Will add an enhancement for that later on. However, I would rather keep the categories so I wouldn't join them all into one |
Sounds good 👍 |
Closes #66