This repository was archived by the owner on Feb 24, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
DscResource.AnalyzerRules Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "powershell.codeFormatting.preset" : " Allman"
2
+ "powershell.codeFormatting.openBraceOnSameLine" : false ,
3
+ "powershell.codeFormatting.newLineAfterOpenBrace" : false ,
4
+ "powershell.codeFormatting.newLineAfterCloseBrace" : true ,
5
+ "powershell.codeFormatting.whitespaceBeforeOpenBrace" : true ,
6
+ "powershell.codeFormatting.whitespaceBeforeOpenParen" : true ,
7
+ "powershell.codeFormatting.whitespaceAroundOperator" : true ,
8
+ "powershell.codeFormatting.whitespaceAfterSeparator" : true ,
9
+ "powershell.codeFormatting.ignoreOneLineBlock" : false ,
10
+ "powershell.codeFormatting.preset" : " Custom" ,
11
+ "files.trimTrailingWhitespace" : true ,
12
+ "files.insertFinalNewline" : true ,
3
13
}
Original file line number Diff line number Diff line change @@ -1037,13 +1037,13 @@ function Measure-Keyword
1037
1037
1038
1038
$keywordFlag = [System.Management.Automation.Language.TokenFlags ]::Keyword
1039
1039
$upperCaseTokens = $Token.Where ( { $_.TokenFlags.HasFlag ($keywordFlag ) -and $_.Text -cmatch ' [A-Z]+' })
1040
+
1040
1041
foreach ($item in $upperCaseTokens )
1041
1042
{
1042
1043
$script :diagnosticRecord [' Extent' ] = $item.Extent
1043
1044
$script :diagnosticRecord [' Message' ] = $localizedData.StatementsContainsUpperCaseLetter -f $item.Text
1044
1045
$script :diagnosticRecord -as $diagnosticRecordType
1045
1046
} # if
1046
-
1047
1047
}
1048
1048
catch
1049
1049
{
You can’t perform that action at this time.
0 commit comments