viceroypenguin / SuperLinq

Extensions to LINQ to Objects
Apache License 2.0
115 stars 12 forks source link

Use tabs in project files #674

Closed Bouke closed 2 months ago

Bouke commented 2 months ago

The csproj files mix spaces and tabs. My editor (Rider) was apparently showing tabs as 2 spaces, resulting in an unreadable csproj file:

image

This PR formats the csproj files to use tab consistently.

I also noticed that various cs files have inconsistent tab/space usage. Not a big concern to me, but as I typically set my editor to auto-format, this produces quite some whitespace changes.

viceroypenguin commented 2 months ago

I'm actually surprised Rider let you do this, since the .editorconfig says that the indent_size for csproj files is 2 spaces.

Do me a favor? Update line 141-148 of the .editorconfig to make it a single group with indent_style = spaces and indent_size = 2. Also add json in the list of extensions.

Then reformat the csproj files.

Thanks!

Bouke commented 2 months ago

I've made those changes.

It's a bit unclear why Rider does this, it doesn't seem to consider .editorconfig in all csproj files? :/