Skip to content

refactor(Project): enhance logging and parameter handling#213

Merged
rulasg merged 6 commits intomainfrom
improvements
Mar 12, 2026
Merged

refactor(Project): enhance logging and parameter handling#213
rulasg merged 6 commits intomainfrom
improvements

Conversation

@rulasg
Copy link
Owner

@rulasg rulasg commented Mar 12, 2026

Streamline debug and verbose section handling, improve debug logging and cache management, and enhance parameter handling for project-related functions. This update also introduces a new parameter for controlling item display in the Use-Order function.

[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

The cmdlet 'get-DebugSections' uses a plural noun. A singular noun should be used instead.
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

Function 'set-DebugSections' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'.
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

The cmdlet 'set-DebugSections' uses a plural noun. A singular noun should be used instead.
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

Function 'set-LogFile' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'.
[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

The cmdlet 'get-VerboseSections' uses a plural noun. A singular noun should be used instead.
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

Function 'set-VerboseSections' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'.
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

The cmdlet 'set-VerboseSections' uses a plural noun. A singular noun should be used instead.
[Alias("New-Issue")]
param (
[Parameter(Mandatory, Position = 0)][string]$ItemId,
[Parameter(Mandatory, ValueFromPipeline, ValueFromPipelineByPropertyName, Position = 0)][Alias("Id")][string]$ItemId,

Check warning

Code scanning / PSScriptAnalyzer

Command accepts pipeline input but has not defined a process block. Warning

Command accepts pipeline input but has not defined a process block.
[Alias("New-Issue")]
param (
[Parameter(Mandatory, Position = 0)][string]$ItemId,
[Parameter(Mandatory, ValueFromPipeline, ValueFromPipelineByPropertyName, Position = 0)][Alias("Id")][string]$ItemId,

Check warning

Code scanning / PSScriptAnalyzer

Command accepts pipeline input but has not defined a process block. Warning

Command accepts pipeline input but has not defined a process block.
if( -not $DontShow){
# Get function to show item
$ShowProjectItemScriptBlock = $ShowProjectItemScriptBlock ?? { param($parameters) Show-ProjectItem @parameters }

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace Note

Line has trailing whitespace
@rulasg rulasg merged commit d12e255 into main Mar 12, 2026
3 checks passed
@rulasg rulasg deleted the improvements branch March 12, 2026 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant