-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Port remaining FxCop rules into .NET as Roslyn Analyzers #61964
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
We should just close any of these that are no longer relevant / stale / etc. @AaronRobinsonMSFT / @jkoritzinsky / @elinor-fung to comment on the interop rules. I suggest we close all of the serialization ones. We're in the process of deprecating BinaryFormatter, we're no longer encouraging implementation of ISerializable nor implementing it ourselves on new types, etc. @GrabYourPitchforks @merriemcgaw for WinForms. |
@stephentoub Out of curiosity, are you simply no longer encouraging the implementation of |
@RussKie can you look at the WinForms ones and see if they make any sense in the current context? |
@Evangelink Basically, we're no longer marking any new types as |
These look worthy of a port. Over the months we had several team discussions and bounced ideas about how we can enhance the developer and end user experiences with various Windows Forms analyzers. I also had an offline thread with @jmarolf @sharwell @mavasani about the same subject, and for the general purpose analyzers (like these) https://github.com/dotnet/roslyn-analyzers looked like a good home. |
The Interop team has gone through the list. The below list contains what we think makes sense to port. All others can be closed. dotnet/roslyn-analyzers#420 |
@AaronRobinsonMSFT Would it be possible to get a short description on why the team thinks the following two rules are not worth being implemented? |
@stephentoub @GrabYourPitchforks Could you please confirm that's ok to close all the tickets about serialization? The tickets in the |
@Evangelink Sure. Would you like the comments here or in the specific issues? |
Maybe directly on the tickets but I am fine here too. The two rules seem to make sense to me (like if you own native or disposable resources you must be disposable, and for the 2nd what's the point of using an interop if the fwk allows for the same fnctionality). |
@Evangelink I've commented on each issue directly. |
Yes, go ahead. Thanks. |
@buyaa-n & @carlossanlop Please review the analyzers in the 'Other' category to determine if we want to bring those for API Review and include them in our plans. Thanks! |
Done |
We were not able to finish this list. Changing the milestone to Future to keep the epic alive. More of these analyzers will be considered as part of .NET 8 planning. |
In roslyn-analyzers there is a bunch of tickets open related to porting some old FxCop rules. Because most of these are dated from 2015, we were wondering if it would be worth having them under review as their relevance or the context in which they apply may have changed.
I have tried to filter down the ones related to .NET API but I may have missed or included incorrect ones (if you want to review them all, please look at https://github.com/dotnet/roslyn-analyzers/issues?q=is%3Aopen+label%3AFxCop-Port+-label%3A%22Needs-Fixer%22):
(tagging @mavasani )
Native resources/Interop
WinForms
Serialization
Others
The text was updated successfully, but these errors were encountered: