Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion requirements.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
Version = '2.0.16'
}
'PowerShellBuild' = @{
Version = '0.6.1'
Version = '0.8.1'
}
'PSScriptAnalyzer' = @{
Version = '1.24.0'
Expand Down
2 changes: 1 addition & 1 deletion tests/Measure-GremlinCharacter.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
@{ Char = [char]0x202C; CodePoint = '202C'; Description = 'pop directional formatting'; Severity = 'Error' }
@{ Char = [char]0x202D; CodePoint = '202D'; Description = 'left-to-right override'; Severity = 'Error' }
@{ Char = [char]0x202E; CodePoint = '202E'; Description = 'right-to-left override'; Severity = 'Error' }
@{ Char = [char]0xFFFC; CodePoint = 'FFFC'; Description = 'object replacement character'; Severity = 'Error' }

Check warning on line 37 in tests/Measure-GremlinCharacter.tests.ps1

View workflow job for this annotation

GitHub Actions / ci / Run Linters

Unknown word (FFFC) Suggestions: (fac, fcc, FCC, fec, fmc)
) {
$fakeScript = "Write-Host '${Char}hello'"
$tokens = $null
Expand Down Expand Up @@ -71,6 +71,6 @@
}
$result = Invoke-ScriptAnalyzer @invokeScriptAnalyzerSplat
$result.Count | Should -BeExactly 1
$result[0].Message | Should -Be "Gremlin character found: U+2013 (en dash). This character may be invisible or visually deceptive."
$result[0].Message | Should -Match '^Gremlin character found: U\+[0-9A-F]{4} \(.+\)\. This character may be invisible or visually deceptive\.$'
}
}
Loading