Skip to content

Commit

Permalink
Align .editorconfig with dotnet new template (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
MattKotsenas authored Dec 19, 2024
1 parent c6e7c79 commit 7b3855c
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 14 deletions.
13 changes: 12 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,18 @@ root = true
indent_style = space

# Xml files
[*.{xml,props,targets}]
[*.xml]
indent_size = 2

# Xml project files
[*.{csproj,fsproj,vbproj,proj}]
indent_size = 2

# Xml config files
[*.{props,targets,config,nuspec}]
indent_size = 2

[*.json]
indent_size = 2

# Verify settings
Expand Down
8 changes: 4 additions & 4 deletions build/perf/baseline.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"release": "0.1.1",
"label": "v.0.1.1",
"sha": "3b1676be5d637fb80595c04bdef8bdbce198cd32"
}
"release": "0.1.1",
"label": "v.0.1.1",
"sha": "3b1676be5d637fb80595c04bdef8bdbce198cd32"
}
18 changes: 9 additions & 9 deletions build/targets/codeanalysis/stylecop.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json",
"settings": {
"layoutRules": {
"newlineAtEndOfFile": "require"
},
"orderingRules": {
"systemUsingDirectivesFirst": true,
"usingDirectivesPlacement": "outsideNamespace"
}
"$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json",
"settings": {
"layoutRules": {
"newlineAtEndOfFile": "require"
},
"orderingRules": {
"systemUsingDirectivesFirst": true,
"usingDirectivesPlacement": "outsideNamespace"
}
}
}

0 comments on commit 7b3855c

Please sign in to comment.