Skip to content

Fix analyzer RCS1060 - #1777

Merged
josefpihrt merged 4 commits into
dotnet:mainfrom
cbersch:fix-rcs1060
Aug 2, 2026
Merged

Fix analyzer RCS1060#1777
josefpihrt merged 4 commits into
dotnet:mainfrom
cbersch:fix-rcs1060

Conversation

@cbersch

@cbersch cbersch commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

* Ignore classes with ile modifier, because that expresses an explicit design choice which must be equivalent to ignoring the diagnostic
@cbersch
cbersch marked this pull request as ready for review July 8, 2026 06:39
Comment thread src/Tests/Analyzers.Tests/RCS1060DeclareEachTypeInSeparateFileTests.cs Outdated
Comment thread src/Analyzers/CSharp/Analysis/DeclareEachTypeInSeparateFileAnalyzer.cs Outdated
@josefpihrt

Copy link
Copy Markdown
Collaborator

@cbersch fix looks fine, I just added a couple of comments.

@cbersch
cbersch requested a review from josefpihrt August 2, 2026 10:30
@josefpihrt
josefpihrt merged commit 135160f into dotnet:main Aug 2, 2026
17 checks passed
@josefpihrt

Copy link
Copy Markdown
Collaborator

@cbersch Thank you for your contribution!

This was referenced Aug 8, 2026
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.

RCS1060 fires even when I have an explicit file scope modifier on a class.

2 participants