- Notifications
You must be signed in to change notification settings - Fork10.4k
Provide analyzer for removing unneeded public partial class Program#58482
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
55a4724
to6a11198
Comparesrc/Framework/AspNetCoreAnalyzers/src/CodeFixes/PublicPartialProgramClassFixer.cs OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Framework/AspNetCoreAnalyzers/test/WebApplicationBuilder/PublicPartialProgramClassTest.cs OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
src/Framework/AspNetCoreAnalyzers/src/CodeFixes/PublicPartialProgramClassFixer.cs OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
...AspNetCoreAnalyzers/src/Analyzers/WebApplicationBuilder/PublicPartialProgramClassAnalyzer.csShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
...AspNetCoreAnalyzers/src/Analyzers/WebApplicationBuilder/PublicPartialProgramClassAnalyzer.cs OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Framework/AspNetCoreAnalyzers/src/CodeFixes/PublicPartialProgramClassFixer.cs OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Framework/AspNetCoreAnalyzers/src/CodeFixes/PublicPartialProgramClassFixer.csShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Framework/AspNetCoreAnalyzers/test/WebApplicationBuilder/PublicPartialProgramClassTest.csShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
...AspNetCoreAnalyzers/src/Analyzers/WebApplicationBuilder/PublicPartialProgramClassAnalyzer.cs OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Framework/AspNetCoreAnalyzers/test/WebApplicationBuilder/PublicPartialProgramClassTest.csShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
...AspNetCoreAnalyzers/src/Analyzers/WebApplicationBuilder/PublicPartialProgramClassAnalyzer.csShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
95a8ea7
intomainUh oh!
There was an error while loading.Please reload this page.
…58482)* Provide analyzer for removing unneeded public partial class Program* Update tests and fix async call* Address feedback* Add test for public partial class with members* Reorganize checks and add tests
Uh oh!
There was an error while loading.Please reload this page.
Follow-up to#58199.
Based on the code generation that we introduced earlier, users can get rid of the explicit
public partial class Program { }
declarations in their source code and rely on the new default behavior.This PR introduces an analyzer to find these explicit declarations and a code fixer to remove them.
Implements#58488