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