Skip to content

Commit 5cc7960

Browse files
committed
Add csharpier
1 parent dd1d1f1 commit 5cc7960

File tree

6 files changed

+43
-3
lines changed

6 files changed

+43
-3
lines changed

.config/dotnet-tools.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"version": 1,
3+
"isRoot": true,
4+
"tools": {
5+
"csharpier": {
6+
"version": "1.1.1",
7+
"commands": [
8+
"csharpier"
9+
],
10+
"rollForward": false
11+
}
12+
}
13+
}

.csharpierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cake.config

.github/workflows/csharpier.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Formatting check
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
7+
jobs:
8+
formatting-check:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
pull-requests: write
12+
steps:
13+
- name: CSharpier Linter
14+
uses: guibranco/[email protected]

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,4 +402,6 @@ FodyWeavers.xsd
402402

403403
# JetBrains Rider
404404
.idea/
405-
*.sln.iml
405+
*.sln.iml
406+
407+
test-results/

build.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
dotnet tool restore
2+
dotnet csharpier format .
3+
14
dotnet run --project build/Build.csproj -- $args
2-
exit $LASTEXITCODE;
5+
exit $LASTEXITCODE;

build.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
dotnet run --project ./build/Build.csproj -- "$@"
1+
#!/bin/sh
2+
3+
set -e
4+
5+
dotnet tool restore
6+
dotnet csharpier format .
7+
8+
dotnet run --project ./build/Build.csproj -- "$@"

0 commit comments

Comments
 (0)