feat(debug): enhance debug functionality with section management and logging#54
feat(debug): enhance debug functionality with section management and logging#54
Conversation
| } | ||
| } | ||
|
|
||
| function get-Sections(){ |
Check warning
Code scanning / PSScriptAnalyzer
The cmdlet 'get-Sections' uses a plural noun. A singular noun should be used instead. Warning
| return $sections | ||
| } | ||
|
|
||
| function set-Sections($sections){ |
Check warning
Code scanning / PSScriptAnalyzer
Function 'set-Sections' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'. Warning
| return $sections | ||
| } | ||
|
|
||
| function set-Sections($sections){ |
Check warning
Code scanning / PSScriptAnalyzer
The cmdlet 'set-Sections' uses a plural noun. A singular noun should be used instead. Warning
| return $logfile | ||
| } | ||
|
|
||
| function set-LogFile($logFilePath){ |
Check warning
Code scanning / PSScriptAnalyzer
Function 'set-LogFile' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'. Warning
| # Assert | ||
| Assert-DebugEnv "all" $logfilename | ||
|
|
||
| #arrange |
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace Note
| } | ||
|
|
||
| function Test_EnableMyDebug_GetDebug{ | ||
|
|
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace Note
| $flagsString = "all" | ||
| } | ||
| } | ||
|
|
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace Note
| [cmdletbinding()] | ||
| param() | ||
|
|
||
| return @{ |
Check notice
Code scanning / PSScriptAnalyzer
The cmdlet 'Get-ModuleNameDebug' returns an object of type 'System.Collections.Hashtable' but this type is not declared in the OutputType attribute. Note
Enhance the debug functionality by introducing section management and logging capabilities. This update allows for better organization and tracking of debug information.