Skip to content

Conversation

@Sntai20
Copy link
Collaborator

@Sntai20 Sntai20 commented Mar 3, 2025

Improve code readability by adding braces to functions using the following command:

Invoke-ScriptAnalyzer -Settings .\Hawk\internal\configurations\PSScriptAnalyzerSettings.psd1 -Path .\ -Recurse -Fix -IncludeRule PSPlaceOpenBrace

This commit updates multiple PowerShell scripts to include braces {} around foreach loops, conditional statements, and function definitions. These changes enhance code clarity and structure across various functions in the Hawk module, ensuring better maintainability and adherence to coding best practices.

This commit updates multiple PowerShell scripts to include braces `{}` around `foreach` loops, conditional statements, and function definitions. These changes enhance code clarity and structure across various functions in the Hawk module, ensuring better maintainability and adherence to coding best practices. Additionally, some scripts have been updated to improve error handling and logging.
@Sntai20 Sntai20 requested a review from jonnybottles March 3, 2025 01:40
@Sntai20 Sntai20 merged commit aa23e68 into personal/ansantan/Code-Quality Mar 3, 2025
1 of 2 checks passed
@Sntai20 Sntai20 deleted the personal/ansantan/Code-Quality-PSPlaceOpenBrace branch March 3, 2025 01:42
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.

2 participants