Skip to content
This repository was archived by the owner on Feb 24, 2021. It is now read-only.

Commit 4593289

Browse files
committed
PR comments fixes
1 parent 4eabe4e commit 4593289

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.vscode/settings.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
11
{
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,
313
}

DscResource.AnalyzerRules/DscResource.AnalyzerRules.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,13 +1037,13 @@ function Measure-Keyword
10371037

10381038
$keywordFlag = [System.Management.Automation.Language.TokenFlags]::Keyword
10391039
$upperCaseTokens = $Token.Where( { $_.TokenFlags.HasFlag($keywordFlag) -and $_.Text -cmatch '[A-Z]+' })
1040+
10401041
foreach ($item in $upperCaseTokens)
10411042
{
10421043
$script:diagnosticRecord['Extent'] = $item.Extent
10431044
$script:diagnosticRecord['Message'] = $localizedData.StatementsContainsUpperCaseLetter -f $item.Text
10441045
$script:diagnosticRecord -as $diagnosticRecordType
10451046
} #if
1046-
10471047
}
10481048
catch
10491049
{

0 commit comments

Comments
 (0)