Skip to content

More lint/format actions #203

Description

@musjj

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:

$ csharpier check .

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions