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

Remove CA2229 Implement serialization constructors #6911

Merged
merged 3 commits into from
Sep 6, 2023

Conversation

buyaa-n
Copy link
Contributor

@buyaa-n buyaa-n commented Sep 5, 2023

CA2229: Implement serialization constructors conflicts with SYSLIB0051: Legacy serialization support APIs are obsolete. As Binary formatters are deprecated in .NET Core CA2229 is also out dated and can be removed.

See more details from the issue: dotnet/runtime#90783
Fixes dotnet/runtime#90783

This PR:

  • Removes this CA2229 implementation and corresponding tests, leaves CA2235 and CA2237 for now as is
  • Removed unused/unimplemented files that apparently left over of some old analyzers that not exist in NetAnalyzers
  • Removed bunch of resource strings that related to above analyzers

isDataflowRule: false,
isEnabledByDefaultInFxCopAnalyzers: false);*/

public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray<DiagnosticDescriptor>.Empty;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This and ImplementSerializationMethodsCorrectly.cs are not implemented and has empty C#, VB overloads and C#/VB Fixers with overloads, kind of unrelated, but has no effect, I can remove them separately if needed

@codecov
Copy link

codecov bot commented Sep 5, 2023

Codecov Report

Merging #6911 (dfe84bb) into main (151bbbe) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff            @@
##             main    #6911    +/-   ##
========================================
  Coverage   96.40%   96.40%            
========================================
  Files        1403     1396     -7     
  Lines      331173   330443   -730     
  Branches    10903    10891    -12     
========================================
- Hits       319258   318560   -698     
+ Misses       9182     9155    -27     
+ Partials     2733     2728     -5     

@buyaa-n buyaa-n merged commit 3a44721 into dotnet:main Sep 6, 2023
11 checks passed
@buyaa-n buyaa-n deleted the remove-ca2229 branch September 6, 2023 21:10
@buyaa-n
Copy link
Contributor Author

buyaa-n commented Sep 6, 2023

/backport to release/8.0.1xx

@github-actions
Copy link
Contributor

github-actions bot commented Sep 6, 2023

Started backporting to release/8.0.1xx: https://github.com/dotnet/roslyn-analyzers/actions/runs/6102469269

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

Successfully merging this pull request may close these issues.

CA2229 conflicts with the new SYSLIB0051
2 participants