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

Update SA1316 to not trigger in tuple types which are part of a member's signature, if that member is an override #3782

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bjornhellander
Copy link
Contributor

@bjornhellander bjornhellander commented Jan 21, 2024

Partly fixes #3781.
Handles originally reported case (overrides), but not the case of implementing an interface.

Updated to fix the issue completely.

Copy link

codecov bot commented Jan 21, 2024

Codecov Report

Attention: Patch coverage is 98.91304% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 97.45%. Comparing base (6327501) to head (d1b6183).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3782      +/-   ##
==========================================
+ Coverage   94.37%   97.45%   +3.08%     
==========================================
  Files         924      924              
  Lines      109815   110198     +383     
  Branches     3302     3310       +8     
==========================================
+ Hits       103635   107394    +3759     
+ Misses       5170     1839    -3331     
+ Partials     1010      965      -45     

@bjornhellander
Copy link
Contributor Author

Any comments on this, @sharwell?

…CorrectCasing unless a diagnostic will be issued
@bjornhellander bjornhellander force-pushed the sa1316-member-override branch from 6f94c20 to 7ea2d3f Compare March 23, 2024 07:48
…r's signature, if that member is an override or implements an interface

DotNetAnalyzers#3781
@bjornhellander bjornhellander force-pushed the sa1316-member-override branch from 7ea2d3f to d1b6183 Compare March 23, 2024 07:59
@bjornhellander
Copy link
Contributor Author

Rebased and updated to also handle members implemented from an interface, making it a complete fix for the linked issue.
Also moved a string allocation to make it not occur as often.

Ready for review.

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.

SA1316: Inactionable diagnostic in method overrides
1 participant