Skip to content

Commit

Permalink
setup csharpier
Browse files Browse the repository at this point in the history
  • Loading branch information
a.civier committed May 22, 2024
1 parent 888eb45 commit 78db646
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
"version": 1,
"isRoot": true,
"tools": {
"csharpier": {
"version": "0.28.2",
"commands": [
"dotnet-csharpier"
]
},
"dotswashbuckle.aspnetcore.cli": {
"version": "3.0.8",
"commands": [
Expand Down
4 changes: 4 additions & 0 deletions .csharpierc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
printWidth: 120
useTabs: false
tabWidth: 4
endOfLine: auto
1 change: 1 addition & 0 deletions .csharpierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/Migrations/*.cs
1 change: 1 addition & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"ms-dotnettools.csharp",
"ms-dotnettools.vscode-dotnet-runtime",
"ms-dotnettools.csdevkit",
"csharpier.csharpier-vscode",
"redhat.vscode-yaml"
]
}
Expand Down
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,16 @@ dotnet_diagnostic.IDE0052.severity = warning

# SA1601: Partial elements should be documented
dotnet_diagnostic.SA1601.severity = silent

#################################################
## Following one conflits with csharpier ########
#################################################

# SA1009: Closing parenthesis should be spaced correctly
dotnet_diagnostic.SA1009.severity = none

# SA1111: Closing parenthesis should be on line of last parameter
dotnet_diagnostic.SA1111.severity = none

# SA1502: Element should not be on a single line
dotnet_diagnostic.SA1502.severity = none
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"typescript"
],
"[csharp]": {
"editor.defaultFormatter": "csharpier.csharpier-vscode",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
Expand Down

0 comments on commit 78db646

Please sign in to comment.