dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
19.11k stars 4.04k forks source link

Remove IDE0055 (formatting) pragma suppressions for collection literals #70711

Open mavasani opened 1 year ago

mavasani commented 1 year ago

Using https://www.nuget.org/packages/Microsoft.CodeAnalysis.CSharp.CodeStyle/4.8.0-3.final of the CodeStyle package leads to a bunch of formatting violations for collection literals, which had to be suppressed via pragmas. These seem to be addressed in the 4.9.xxx version of the package, but there is no public 17.9 Preview version of VS that is released yet. Once that is released, we should move to 4.9.0-1.final version of the package and remove the pragmas tagged with this issue URI

sharwell commented 10 months ago

The CodeStyle package disables formatting in collection expressions due to #69219 and #70060. This is an unfortunate expansion of #8269 to another feature.