Conversation
f1a5247 to
f046237
Compare
|
Were you able to confirm the analyzers flag the types you identified in #7831 (comment)? |
It did not! I am looking into it. |
|
I think its the version of |
The version that we use is in https://github.com/dotnet/winforms/blob/be7b0368d986b6220d259f2dd0785ccf3c728f0e/eng/CodeStyle.targets. |
f046237 to
8c03267
Compare
|
I can sync with runtime if you want? Or did the team want to do that? |
I am an external contributor, so I am not representing the team. What I did in the past was to sync the rules with runtime and add |
8c03267 to
a32dbd4
Compare
|
@NewellClark winforms is looking at implementing Example: |
Oh, thank you! (I should know these things, shouldn't I? :)) |
Already done :) |
We take all the help we can from the community :) |
|
Do you mind updating |
a32dbd4 to
4cb7b69
Compare
4cb7b69 to
923ca5c
Compare
923ca5c to
bff2f7d
Compare
|
@RussKie only issue to resolve now is why the CA1852 doesn't detect the private classes we found in the other PR. Does winforms use InternalsVisibleToAttribute? |
Yes, quite extensively: https://github.com/dotnet/winforms/search?q=InternalsVisibleTo |
|
Comment from the Analyzer code: The projects has the following and so is excluded: We can continue to use it, but it won't find anything on projects using |
|
An escape hatch for this behaviour is being tracked at dotnet/roslyn-analyzers#5973 |
|
Awesome! Thank you heaps for taking the lead on this. |
Fixes #7879
Singular warning for CA1812 supressed due to usage in interop.
Synced globalconfig with runtime and added #TODO to items that were warning.
Microsoft Reviewers: Open in CodeFlow