Skip to content

Commit 6949890

Browse files
committed
feat: added new code formatting preset OTPS
1 parent aba29c3 commit 6949890

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
@{
2+
IncludeRules = @(
3+
'PSPlaceOpenBrace',
4+
'PSPlaceCloseBrace',
5+
'PSUseConsistentWhitespace',
6+
'PSUseConsistentIndentation',
7+
'PSAlignAssignmentStatement',
8+
'PSUseCorrectCasing'
9+
)
10+
11+
Rules = @{
12+
PSPlaceOpenBrace = @{
13+
Enable = $true
14+
OnSameLine = $true
15+
NewLineAfter = $true
16+
IgnoreOneLineBlock = $true
17+
}
18+
19+
PSPlaceCloseBrace = @{
20+
Enable = $true
21+
NewLineAfter = $true
22+
IgnoreOneLineBlock = $true
23+
NoEmptyLineBefore = $false
24+
}
25+
26+
PSUseConsistentIndentation = @{
27+
Enable = $true
28+
Kind = 'space'
29+
PipelineIndentation = 'IncreaseIndentationForFirstPipeline'
30+
IndentationSize = 4
31+
}
32+
33+
PSUseConsistentWhitespace = @{
34+
Enable = $true
35+
CheckInnerBrace = $true
36+
CheckOpenBrace = $true
37+
CheckOpenParen = $true
38+
CheckOperator = $true
39+
CheckPipe = $true
40+
CheckPipeForRedundantWhitespace = $false
41+
CheckSeparator = $true
42+
CheckParameter = $false
43+
IgnoreAssignmentOperatorInsideHashTable = $true
44+
}
45+
46+
PSAlignAssignmentStatement = @{
47+
Enable = $true
48+
CheckHashtable = $true
49+
}
50+
51+
PSUseCorrectCasing = @{
52+
Enable = $true
53+
}
54+
}
55+
}

0 commit comments

Comments
 (0)