-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Adopt File-scoped namespaces #3331
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
Conversation
Switch to file-scoped namespaces for `Swashbuckle.AspNetCore.Annotations*`.
Switch to file-scoped namespaces for `Swashbuckle.AspNetCore.ApiTesting*`.
Switch to file-scoped namespaces for `Swashbuckle.AspNetCore.Cli*`.
Switch to file-scoped namespaces for `Swashbuckle.AspNetCore.Newtonsoft*`.
Switch to file-scoped namespaces for `Swashbuckle.AspNetCore.ReDoc*`.
Switch to file-scoped namespaces for `Swashbuckle.AspNetCore.SwaggerUI*`.
Switch to file-scoped namespaces for `Swashbuckle.AspNetCore.Swagger*`.
Switch to file-scoped namespaces for `Swashbuckle.AspNetCore.SwaggerGen*`.
Switch to file-scoped namespaces for `Swashbuckle.AspNetCore.TestSupport*`.
Switch to file-scoped namespaces for `Swashbuckle.AspNetCore.IntegrationTests*`.
Switch to file-scoped namespaces for the test websites.
Simplify the hash define constants to either `#if NET` or `#if !NET` - most of the versions are now redundant since we only support .NET 8+.
test/WebSites/OAuth2Integration/AuthServer/Controllers/AccountController.cs
Dismissed
Show dismissed
Hide dismissed
test/WebSites/OAuth2Integration/AuthServer/Controllers/ConsentController.cs
Dismissed
Show dismissed
Hide dismissed
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #3331 +/- ##
==========================================
- Coverage 84.84% 84.82% -0.03%
==========================================
Files 77 79 +2
Lines 3221 3216 -5
Branches 556 556
==========================================
- Hits 2733 2728 -5
Misses 488 488
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Ignore changes from #3331.
Ignore changes from #3331.
While working on #3283 the IDE was marking lots of suggestions to modernise the codebase.
Rather than ignore it, or make such changes part of the .NET 10 adoption, instead just go through everything now and spruce it up.
This PR adopts file-scoped namespaces for all of the code files, and also simplifies the
#if ...
pre-processor directives.Post-merge there will be a PR to add the squashed commit to#3332.git-blame-ignore-revs
.PR commits are grouped in chunks for easier review if anyone wants to.