Skip to content

Add option to all integrations to report incorrect formatting as a warning instead of error #1687

@skoging

Description

@skoging

Environments:

  • CSharpier Version: 1.1.2
  • Running CSharpier via: MsBuild
  • Operating System: Windows 11
  • .csharpierrc Settings: N/A
  • .editorconfig Settings: N/A

Expected behavior:

> dotnet build -c release
...

Build succeeded.

/path/to/File.cs : warning : Was not formatted. [/path/to/Project.csproj]
    1 Warning(s)
    0 Error(s)

Time Elapsed 00:00:01.00

Actual behavior:

> dotnet build -c release
...

Build FAILED.

/path/to/File.cs : error : Was not formatted. [/path/to/Project.csproj]
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:01.00

Related issue:


Feature request: Add option to control severity for csharpier check

There is already a similar option, but only for the VS Code extension.
I propose adding similar option to all integrations, either with common configuration in .csharpierrc and .editorconfig, or as a specific options for each integration similar to the VS Code integration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions