Code Quality: Global usings, single line namespaces
See original GitHub issueDescription
I think we should start the conversation about global usings and single line namespace declarations.
_Originally posted by @lukeblevins in https://github.com/files-community/Files/issues/11832#issuecomment-1484257518_
Concerned code
All cs files
Gains
Better readability
Requirements
- Agree upon a subset of using statements that are common to most source files
- Add
GlobalUsings.cs
- Amend code quality guidelines for single line namespace definitions
- Implement single line namespace defs
Comments
This is under discussion on the discord server
Issue Analytics
- State:
- Created 6 months ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Global Usings – A Look at New Language Features in C# 10
Welcome to the third part of our series, where we take a closer look at the new C# language features the .NET team...
Read more >Global Using Directives in C# - Code Maze
We declare global usings by using two ways. In a first way, we define the global using directive in any file within our...
Read more >CA1050: Declare types in namespaces (code analysis)
Types are declared in namespaces to prevent name collisions, and as a way to organize related types in an object hierarchy.
Read more >Use C# 10 Global Usings to make namespaces available to ...
Global Usings in C# 10 allow us to declare a namespace as being available to all files in a project so we don't...
Read more >Global using Directive in C# 10
The purpose of this feature is to keep the code clean and do not have same duplicate lines of using namespace in every...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here’s my proposal
@0x5bfa we can definitely do that but let’s keep it separate from the Global Usings PR.