Problem Matcher for dotnet-format

September 25, 2023 ยท View on GitHub

CI CodeQL

Adds a problem matcher that will detect errors from dotnet-format and create annotations for them.

Usage

on: push
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-dotnet@v1
          with:
            dotnet-version: 7.0.x
      - uses: xt0rted/dotnet-format-problem-matcher@v1
      - run: dotnet tool install -g dotnet-format
      - run: dotnet format --no-restore --verify-no-changes

Example of inline annotations

Example of build log with highlighted errors

Options

NameAllowed valuesDescription
actionadd (default), removeIf the problem matcher should be registered or removed

License

The scripts and documentation in this project are released under the MIT License