chore: add CSharpier formatting#33
Conversation
7ce85af to
72cffd0
Compare
72cffd0 to
bad7419
Compare
- Wanting to use the new extensions syntax from c#14 - Libraries already will support netstandard2.0, so no issues there if used in dotnet 8 projects in future - CLI tool can be justified as dropping the last LTS for support as it's not a dependency in anything else
| name, | ||
| (requestId, args) => | ||
| { | ||
| Task.Run(() => |
There was a problem hiding this comment.
It looks like this is using 4-space indent. It should stay as 2-space indent.
There was a problem hiding this comment.
I don't see it using 4-space indent anywhere, can you point to a specific line? Csharpier respects whatever setting for indents we have in the .editorconfig, which is set to 2. There are only 4 configuration options for csharpier:
printWidth: 100
useTabs: false
indentSize: 4
endOfLine: autoIt will use whatever's in .editorconfig, or the defaults above, if no .csharpierrc is provided.
There was a problem hiding this comment.
I will also say that the standard for C# is 4-spaces, no tabs. Microsoft conventions here tend to win out in the majority of C# projects, and 2 spaces looks about as alien in C# as using spaces instead of tabs in go would look. These are definitely just 2 spaces, however.
Adds CSharpier formatting for generated and hand-written C# code, with CI coverage for format checks.
Commits in order add the CI job and the csharpier application to the generated client before the large format changes.
Blocked by
Closes #27