News for hackers. Stuff that matters.
Re:Welcome to C# 10 by jdmichal on Monday November 08, 2021 @03:44PM (#29153978)
I thought it was generally considered good practice to put extension methods into static classes in their own file. So like `FooExtensions.cs` if you are writing extensions for the `Foo` class.

I would consider this the same: Project should have a `GlobalUsings.cs` file.

Does C# have any linters available that could enforce such a conventions?

Re:Welcome to C# 10 by int_19h on Monday November 08, 2021 @03:53PM (#29154115)
C# has a framework in-place to facilitate workspace-specific linters, so even if one doesn't exist, it could be written very easily (and premade ones are sure to appear quickly).

https://docs.microsoft.com/en-us/dotnet/csharp/roslyn-sdk/tu...