fix: bareword check typo + grep-on-hash bug #189
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
First exploration of Test-MockFile. Found and fixed several bugs and modernized CI.
Bug Fixes
$_[9]→$_[0]in 6 dir functions — bareword detection guard in__opendir,__readdir,__telldir,__rewinddir,__seekdir,__closedirwas checking an out-of-bounds argument index. The condition was always true (undef is not a ref), making_upgrade_barewordsrun unconditionally. Fixed to check$_[0]as originally intended.grepon hash indir()—grep m{...}, %files_being_mockediterates both keys AND values. Stringified mock objects could accidentally match the path regex. Fixed tokeys %files_being_mocked.=itembroke POD parsing for$file_ruleparameter inadd_strict_rule().Unkownn→Unknown,reaosn→reason,desciptors→descriptors.Review Scores
🤖 Generated with Claude Code