I feel that the project can use a bit more CI actions around linting and formatting.
For linting we could simply run dotnet build while treating warnings as errors:
$ dotnet build -warnaserror
The command will fail if there are any errors or warnings.
For formatting, how about adopting CSharpier? The problem with the native dotnet format is that they don't even support line breaking, IMO one the most valuable benefits to using autoformatters:
The issue is almost 10 years old now and it's unlikely to be fixed any time soon.
To check the formatting with CSharpier, the CI can run:
What do you think?
I feel that the project can use a bit more CI actions around linting and formatting.
For linting we could simply run
dotnet buildwhile treating warnings as errors:The command will fail if there are any errors or warnings.
For formatting, how about adopting CSharpier? The problem with the native
dotnet formatis that they don't even support line breaking, IMO one the most valuable benefits to using autoformatters:The issue is almost 10 years old now and it's unlikely to be fixed any time soon.
To check the formatting with CSharpier, the CI can run:
$ csharpier check .What do you think?