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

Put dotnet_diagnostic.CA1852.severity = warning into effect. Fix the resulting warnings #2289

Merged
merged 2 commits into from
Sep 17, 2024

Conversation

Henr1k80
Copy link
Contributor

@Henr1k80 Henr1k80 commented Sep 17, 2024

Pull Request

The issue or feature being addressed

Performance

Details on the issue fix or feature implementation

InternalsVisibleTo disables CA1852, so it is not in effect.
dotnet/roslyn-analyzers#6438

I have set this to ignore InternalsVisibleTo:
dotnet_code_quality.CA1852.ignore_internalsvisibleto = true

I have fixed the resulting warnings

I have locally set this to ignore InternalsVisibleTo:
dotnet_code_quality.CA1852.ignore_internalsvisibleto = true

Let me know if I should commit that change as well.
Then the snippet project also need some changes to obey CA1852.

Confirm the following

  • I started this PR by branching from the head of the default branch
  • I have targeted the PR to merge into the default branch
  • I have included unit tests for the issue/feature
  • I have successfully run a local build

@Henr1k80
Copy link
Contributor Author

@dotnet-policy-service agree

@martincostello
Copy link
Member

Let me know if I should commit that change as well.

Yes please!

@Henr1k80 Henr1k80 marked this pull request as draft September 17, 2024 09:13
@Henr1k80 Henr1k80 changed the title Seal some types as if dotnet_diagnostic.CA1852.severity = warning was in effect Put dotnet_diagnostic.CA1852.severity = warning into effect. Fix the resulting warnings Sep 17, 2024
@Henr1k80 Henr1k80 marked this pull request as ready for review September 17, 2024 09:50
Copy link

codecov bot commented Sep 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.33%. Comparing base (957444f) to head (b627992).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2289      +/-   ##
==========================================
- Coverage   85.35%   85.33%   -0.03%     
==========================================
  Files         313      313              
  Lines        7444     7444              
  Branches     1122     1122              
==========================================
- Hits         6354     6352       -2     
- Misses        745      746       +1     
- Partials      345      346       +1     
Flag Coverage Δ
linux 85.33% <100.00%> (-0.03%) ⬇️
macos 85.33% <100.00%> (-0.03%) ⬇️
windows 85.33% <100.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@martincostello martincostello enabled auto-merge (squash) September 17, 2024 09:55
@martincostello martincostello added this to the v8.4.2 milestone Sep 17, 2024
@martincostello martincostello merged commit 5b39448 into App-vNext:main Sep 17, 2024
14 of 15 checks passed
@martincostello martincostello removed this from the v8.4.2 milestone Sep 26, 2024
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.

2 participants