-
-
Notifications
You must be signed in to change notification settings - Fork 0
Several Improvements #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
rulasg
commented
Oct 12, 2025
- InvokeCommand - Add Invoke-MyCommand to capture InvokeHelpers calls.
- Logging (Improve)
- Transcript (Improve)
- Dependencies (Fix)
|
|
||
| function Stop-MyTranscript { | ||
| Stop-Transcript | ||
|
|
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace Note
| $lastLine = $i[2] - 1 | ||
|
|
||
| $retlist = $transcriptContent[$firstLine..$lastLine] | ||
|
|
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace Note
| Write-MyHost -Message "This is a test transcript." | ||
| Write-Host -Message "This is a second test transcript." | ||
| } | ||
|
|
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace Note
| $module = $result | where-object {$_.GetType().Name -eq "PSCustomObject"} | ||
| Assert-AreEqual -Expected $name -Presented $module.Name | ||
| Assert-AreEqual -Expected $name -Presented $result.Name | ||
| Assert-Contains -Presented $tt -Expected "Module [$Name] imported from own module" |
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace Note
| param( | ||
| [Parameter(ValueFromPipeline)][string]$Color, | ||
| [Parameter(ValueFromPipeline, Position=0)][string]$Message, | ||
| [Parameter(ValueFromPipeline, Position = 0)][string]$Message, |
Check warning
Code scanning / PSScriptAnalyzer
Command accepts pipeline input but has not defined a process block. Warning
| $trace = ($flag -like '*all*') -or ( $section -like "*$flag*") | ||
| return $trace | ||
| } | ||
|
|
Check warning
Code scanning / PSScriptAnalyzer
Function 'Set-ModuleNameVerbose' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'. Warning
| $trace = ($flag -like '*all*') -or ( $section -like "*$flag*") | ||
| return $trace | ||
| } | ||
|
|
Check warning
Code scanning / PSScriptAnalyzer
Function 'Set-ModuleNameDebug' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'. Warning
|
|
||
| if ($null -eq $Object) { | ||
| return "null" | ||
| } |
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace Note
|
|
||
| if ($Object -is [string]) { | ||
| return $Object | ||
| } |
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace Note