testcontainers-dotnet icon indicating copy to clipboard operation
testcontainers-dotnet copied to clipboard

[Enhancement]: csharpier for formatting

Open cimnine opened this issue 5 months ago • 1 comments

Problem

When I was working on the code, my IDE formatted the code in a way that didn't match the repository's style.

Solution

Format the code with csharpier and automatically check the formatting via a GitHub Action.

Benefit

  • It would no longer be a manual task to check if the formatting is correct.
  • It would level opinions about the formatting (It's the way the formatter does it and that's the way it is.)

Alternatives

Another formatter, e.g. dotnet format. But that one isn't as rigorous, and it's also slow.

Would you like to help contributing this enhancement?

Yes

cimnine avatar Jul 31 '25 15:07 cimnine

Thanks for sharing CSharpier. I didn’t know about the project. I definitely agree with both of the benefits you mentioned. Back when I started using Testcontainers, I felt like the tooling around this area wasn't very consistent or reliable. But if CSharpier is solid, it would be a great improvement for the project!

HofmeisterAn avatar Jul 31 '25 16:07 HofmeisterAn