Merge pull request #230 from sp-tarkov/dotnet-format

This commit is contained in:
Refringe
2025-06-18 13:05:09 -04:00
committed by GitHub
2 changed files with 40 additions and 2 deletions
+3 -2
View File
@@ -12,11 +12,12 @@ indent_style = space
indent_size = 4
trim_trailing_whitespace = true
[{*.yaml,*.yml}]
indent_size = 2
[*.json]
ij_formatter_enabled = true
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
# C# files
[*.cs]
+37
View File
@@ -0,0 +1,37 @@
name: .NET Format
on:
push:
branches:
- develop
pull_request:
branches: ["*"]
branches-ignore:
- main
jobs:
dotnet-format:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.BYPASS_WORKFLOW_PAT }}
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0
- name: Restore Tool Dependencies
run: dotnet tool install -g csharpier
- name: CSharpier Format
run: csharpier format .
- uses: stefanzweifel/git-auto-commit-action@v6
with:
commit_message: .NET Format Style Fixes
commit_user_name: Format Bot