Skip to content

Commit 87ed2b6

Browse files
🪲 [Fix]: Fix ternary operation checker (#65)
## Description - Fix ternary operation checker ## Type of change <!-- Use the check-boxes [x] on the options that are relevant. --> - [ ] 📖 [Docs] - [x] 🪲 [Fix] - [ ] 🩹 [Patch] - [ ] ⚠️ [Security fix] - [ ] 🚀 [Feature] - [ ] 🌟 [Breaking change] ## Checklist <!-- Use the check-boxes [x] on the options that are relevant. --> - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas
1 parent e03c36f commit 87ed2b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/tests/PSModule/SourceCode.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ Describe 'PSModule - SourceCode tests' {
120120
$scriptFiles | ForEach-Object {
121121
$filePath = $_.FullName
122122
$relativePath = $filePath.Replace($Path, '').Trim('\').Trim('/')
123-
Select-String -Path $filePath -Pattern '(?<!\|)\s+\?' -AllMatches | ForEach-Object {
123+
Select-String -Path $filePath -Pattern '(?<!\|)\s+\?\s' -AllMatches | ForEach-Object {
124124
$issues += " - $relativePath`:L$($_.LineNumber) - $($_.Line)"
125125
}
126126
}

0 commit comments

Comments
 (0)