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

Commit 4099b0e

Browse files
committed
Fix the 'no space between' check
1 parent db56970 commit 4099b0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DscResource.AnalyzerRules/DscResource.AnalyzerRules.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,7 @@ function Measure-Keyword
10391039
$keywords = $Token.Where{ $_.TokenFlags.HasFlag($keywordFlag) }
10401040
$upperCaseTokens = $keywords.Where{ $_.Text -cmatch '[A-Z]+' }
10411041

1042-
$tokenWithNoSpace = $keywords.Where{ $_.Extent.StartScriptPosition.Line -match '[a-z]+\(.*' }
1042+
$tokenWithNoSpace = $keywords.Where{ $_.Extent.StartScriptPosition.Line -match "$($_.Extent.Text)\(.*" }
10431043

10441044
foreach ($item in $upperCaseTokens)
10451045
{

0 commit comments

Comments
 (0)