feat(MyHandle): add function to retrieve GitHub username and improve logging#55
feat(MyHandle): add function to retrieve GitHub username and improve logging#55
Conversation
| [System.Environment]::SetEnvironmentVariable($moduleDEbugLoggingVarName, $logFilePath) | ||
| } | ||
|
|
||
| function get-DebugSections(){ |
Check warning
Code scanning / PSScriptAnalyzer
The cmdlet 'get-DebugSections' uses a plural noun. A singular noun should be used instead. Warning
| return $sections | ||
| } | ||
|
|
||
| function set-DebugSections($sections){ |
Check warning
Code scanning / PSScriptAnalyzer
Function 'set-DebugSections' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'. Warning
| return $sections | ||
| } | ||
|
|
||
| function set-DebugSections($sections){ |
Check warning
Code scanning / PSScriptAnalyzer
The cmdlet 'set-DebugSections' 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
| [System.Environment]::SetEnvironmentVariable($moduleDEbugLoggingVarName, $logFilePath) | ||
| } | ||
|
|
||
| function get-VerboseSections{ |
Check warning
Code scanning / PSScriptAnalyzer
The cmdlet 'get-VerboseSections' uses a plural noun. A singular noun should be used instead. Warning
| return $sections | ||
| } | ||
|
|
||
| function set-VerboseSections($sections){ |
Check warning
Code scanning / PSScriptAnalyzer
Function 'set-VerboseSections' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'. Warning
| return $sections | ||
| } | ||
|
|
||
| function set-VerboseSections($sections){ |
Check warning
Code scanning / PSScriptAnalyzer
The cmdlet 'set-VerboseSections' uses a plural noun. A singular noun should be used instead. Warning
| function Get-MyHandle{ | ||
| [CmdletBinding()] | ||
| param() | ||
|
|
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace Note
| param() | ||
|
|
||
| $user = Invoke-MyCommand -Command GetGhHandle | ||
|
|
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace Note
Introduce a new function to retrieve the GitHub username and enhance the debug and verbose logging capabilities. Correct the trace condition logic to ensure accurate logging behavior.