RehanSaeed / EditorConfig

A very generic .editorconfig file supporting .NET, C#, VB and web technologies.
MIT License
629 stars 171 forks source link

Add Sample Project #30

Closed RehanSaeed closed 3 years ago

RehanSaeed commented 4 years ago

A sample project exercising all rules and using the new Microsoft.CodeAnalysis.CSharp.CodeStyle NuGet package to enforce rules through build failures.

https://www.strathweb.com/2020/01/enforcing-c-editorconfig-formatting-conventions-at-build-time/

RehanSaeed commented 4 years ago

Looks like the severity has to be configured differently if we use this package. See:

https://github.com/dotnet/roslyn/issues/33558#issuecomment-659486750

RehanSaeed commented 4 years ago

There is a proposal to change the way that the severity (warning, error etc.) is specified. Seemingly making it worse. If this goes ahead we'd need to double the size of our file to support it.

https://github.com/dotnet/roslyn/issues/44201#issuecomment-659976785

RehanSaeed commented 3 years ago

Fixed in https://github.com/RehanSaeed/EditorConfig/pull/45.