-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[dotnet] Use namespace file scoped #15651
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
[dotnet] Use namespace file scoped #15651
Conversation
|
Thank you, @nvborisenko for this code suggestion. The support packages contain example code that many users find helpful, but they do not necessarily represent We actively encourage people to add the wrapper and helper code that makes sense for them to their own frameworks. |
PR Reviewer Guide 🔍(Review updated until commit 866f81c)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 866f81c
Previous suggestionsSuggestions up to commit 866f81c
|
||||||||||||||||||
|
Hey bot, your opinion is useful, but please suggest rather than decide. |
User description
Simplify reading of .net code.
🔗 Related Issues
💥 What does this PR do?
I created
.editorconfigfile especially allocated for dotnet rules.🔧 Implementation Notes
💡 Additional Considerations
It is massive change, now or later?
🔄 Types of changes
PR Type
Enhancement
Description
Refactored all .NET source and test files to use file-scoped namespaces, modernizing code style and improving readability.
Flattened class and interface structures by removing unnecessary nesting and indentation, resulting in cleaner and more maintainable code.
No functional or logic changes; all updates are structural and formatting only.
Introduced a dedicated
.editorconfigfile to enforce consistent .NET code style rules across the project.Changes walkthrough 📝
9 files
WebDriver.cs
Refactor to file-scoped namespace for WebDriver classdotnet/src/webdriver/WebDriver.cs
extra indentation level.
improved readability.
DriverOptions.cs
Refactor to file-scoped namespace for DriverOptionsdotnet/src/webdriver/DriverOptions.cs
to align with file-scoped namespace.
improvements.
SafariSpecificTests.cs
Refactor SafariSpecificTests to file-scoped namespacedotnet/test/safari/SafariSpecificTests.cs
ElementFindingTest.cs
Refactor to file-scoped namespace and flatten test class structuredotnet/test/common/ElementFindingTest.cs
ElementFindingTestatop-level class in the file.
namespace, removing indentation and braces associated with the
previous nested class structure.
formatting.
RemoteWebDriver.cs
Refactor to file-scoped namespace and reformat RemoteWebDriverdotnet/src/webdriver/Remote/RemoteWebDriver.cs
result of the file-scoped namespace.
formatting.
DriverStartingEventArgs.cs
Refactor to file-scoped namespace and flatten DriverStartingEventArgsclassdotnet/test/common/Environment/DriverStartingEventArgs.cs
DriverStartingEventArgsa top-level class in the file.structure.
formatting.
ExecutingJavascriptTest.cs
Refactor to file-scoped namespace and flatten class structure in testfiledotnet/test/common/ExecutingJavascriptTest.cs
structure.
file-scoped namespace style.
style.
Actions.cs
Refactor Actions class to file-scoped namespace and flatten structuredotnet/src/webdriver/Interactions/Actions.cs
structure.
style.
ILoadableComponent.cs
Refactor ILoadableComponent to file-scoped namespace and flatteninterfacedotnet/src/support/UI/ILoadableComponent.cs
indentation.
101 files