Skip to content

refactor: improve code quality #2301

refactor: improve code quality

refactor: improve code quality #2301

Workflow file for this run

name: dotnet format
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
check-format:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Check out code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Setup .NET SDK
uses: actions/setup-dotnet@baa11fbfe1d6520db94683bd5c7a3818018e4309 # v5
with:
global-json-file: global.json
- name: dotnet format
run: |
# Exclude diagnostics to work around dotnet-format issue, see https://github.com/dotnet/sdk/issues/50012
dotnet format --verify-no-changes OpenFeature.slnx --exclude-diagnostics IL2026 --exclude-diagnostics IL3050