You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
Measure-GremlinCharacter: New rule to detect invisible or visually
deceptive Unicode characters (gremlins) such as zero-width spaces,
bidirectional overrides, and curly quotes. 19 characters flagged with
per-character severity (Error, Warning, or Information).
Inspired by vscode-gremlins.
Tests for Measure-GremlinCharacter with per-character -ForEach
cases, a negative clean-code case, a fixture-based detection test,
and a suppression test using SuppressMessageAttribute.
CLAUDE.md with project guidance for Claude Code.
Changed
Measure-TODOComment: Updated Token parameter type to Token[]
to match how PSScriptAnalyzer invokes token-based rules; renamed $matches to $regexMatches to avoid collision with the automatic $Matches variable; normalized keyword casing to lowercase.
tests/PSScriptAnalyzerRules.psm1: Proxy module now loads explicitly
from the Output\GoodEnoughRules build directory.