easitab / EPR.GlobalFunctions

Provide functions to be used in script executed by EasitProcessRunner
https://docs.easitgo.com/techspace/epr/globalfunctions/
Apache License 2.0
1 stars 0 forks source link

add function 'Set-EPREnvironment' to replace usage of 'environmentSetup.ps1' #30

Closed easitanth closed 10 months ago

github-actions[bot] commented 10 months ago

PSScriptAnalyzer results:

Errors: [0], Warnings: [19], Information: [22]

``` RuleName : PSAvoidGlobalVars Severity : Warning ScriptName : Write-CustomLog.ps1 Line : 95 Message : Found global variable 'global:LoggerSettings'. RuleName : PSAvoidGlobalVars Severity : Warning ScriptName : Write-CustomLog.ps1 Line : 96 Message : Found global variable 'global:LoggerSettings'. RuleName : PSAvoidGlobalVars Severity : Warning ScriptName : Write-CustomLog.ps1 Line : 98 Message : Found global variable 'global:epr_LoggerSettings'. RuleName : PSAvoidGlobalVars Severity : Warning ScriptName : Write-CustomLog.ps1 Line : 99 Message : Found global variable 'global:epr_LoggerSettings'. RuleName : PSUseProcessBlockForPipelineCommand Severity : Warning ScriptName : Write-CustomLog.ps1 Line : 77 Message : Command accepts pipeline input but has not defined a process block. RuleName : PSUseProcessBlockForPipelineCommand Severity : Warning ScriptName : Write-CustomLog.ps1 Line : 79 Message : Command accepts pipeline input but has not defined a process block. RuleName : PSAvoidUsingEmptyCatchBlock Severity : Warning ScriptName : New-EPRInstallation.ps1 Line : 350 Message : Empty catch block is used. Please use Write-Error or throw statements in catch blocks. RuleName : PSAvoidUsingEmptyCatchBlock Severity : Warning ScriptName : New-EPRInstallation.ps1 Line : 388 Message : Empty catch block is used. Please use Write-Error or throw statements in catch blocks. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : New-EPRInstallation.ps1 Line : 63 Message : File 'New-EPRInstallation.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : New-EPRInstallation.ps1 Line : 64 Message : File 'New-EPRInstallation.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : New-EPRInstallation.ps1 Line : 65 Message : File 'New-EPRInstallation.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : New-EPRInstallation.ps1 Line : 66 Message : File 'New-EPRInstallation.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : New-EPRInstallation.ps1 Line : 67 Message : File 'New-EPRInstallation.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : New-EPRInstallation.ps1 Line : 68 Message : File 'New-EPRInstallation.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSPossibleIncorrectUsageOfAssignmentOperator Severity : Warning ScriptName : New-EPRInstallation.ps1 Line : 547 Message : Did you mean to use the assignment operator '='? The equality operator in PowerShell is 'eq'. RuleName : PSAvoidAssignmentToAutomaticVariable Severity : Warning ScriptName : Convert-OUString.ps1 Line : 69 Message : The Variable 'Matches' is an automatic variable that is built into PowerShell, assigning to it might have undesired side effects. If assignment is not by design, please use a different name. RuleName : PSReviewUnusedParameter Severity : Warning ScriptName : Write-EPRInstallLog.ps1 Line : 41 Message : The parameter 'LogLevel' has been declared but not used. RuleName : PSUseProcessBlockForPipelineCommand Severity : Warning ScriptName : Write-EPRInstallLog.ps1 Line : 31 Message : Command accepts pipeline input but has not defined a process block. RuleName : PSUseProcessBlockForPipelineCommand Severity : Warning ScriptName : Write-EPRInstallLog.ps1 Line : 33 Message : Command accepts pipeline input but has not defined a process block. RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Write-CustomLog.ps1 Line : 16 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Write-CustomLog.ps1 Line : 17 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Write-CustomLog.ps1 Line : 19 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Write-CustomLog.ps1 Line : 21 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Get-SettingsFromFile.ps1 Line : 36 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Get-SettingsFromFile.ps1 Line : 40 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Get-SettingsFromFile.ps1 Line : 92 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Get-SettingsFromFile.ps1 Line : 141 Message : Line has trailing whitespace RuleName : PSProvideCommentHelp Severity : Information ScriptName : Set-EPREnvironment.ps1 Line : 1 Message : The cmdlet 'Set-EPREnvironment' does not have a help comment. RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-EPRInstallation.ps1 Line : 54 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-EPRInstallation.ps1 Line : 60 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-EPRInstallation.ps1 Line : 94 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-EPRInstallation.ps1 Line : 604 Message : Line has trailing whitespace RuleName : PSUseOutputTypeCorrectly Severity : Information ScriptName : New-EPRInstallation.ps1 Line : 428 Message : The cmdlet 'New-EPRInstallation' returns an object of type 'System.String' but this type is not declared in the OutputType attribute. RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Convert-OUString.ps1 Line : 40 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Write-EPRInstallLog.ps1 Line : 43 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-PostBody.ps1 Line : 30 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-PostBody.ps1 Line : 32 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-PostBody.ps1 Line : 34 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-PostBody.ps1 Line : 50 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-PostBody.ps1 Line : 63 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-PostBody.ps1 Line : 65 Message : Line has trailing whitespace ```

github-actions[bot] commented 10 months ago

PSScriptAnalyzer results:

Errors: [0], Warnings: [13], Information: [22]

``` RuleName : PSAvoidUsingEmptyCatchBlock Severity : Warning ScriptName : New-EPRInstallation.ps1 Line : 350 Message : Empty catch block is used. Please use Write-Error or throw statements in catch blocks. RuleName : PSAvoidUsingEmptyCatchBlock Severity : Warning ScriptName : New-EPRInstallation.ps1 Line : 388 Message : Empty catch block is used. Please use Write-Error or throw statements in catch blocks. RuleName : PSPossibleIncorrectUsageOfAssignmentOperator Severity : Warning ScriptName : New-EPRInstallation.ps1 Line : 547 Message : Did you mean to use the assignment operator '='? The equality operator in PowerShell is 'eq'. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : New-EPRInstallation.ps1 Line : 63 Message : File 'New-EPRInstallation.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : New-EPRInstallation.ps1 Line : 64 Message : File 'New-EPRInstallation.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : New-EPRInstallation.ps1 Line : 65 Message : File 'New-EPRInstallation.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : New-EPRInstallation.ps1 Line : 66 Message : File 'New-EPRInstallation.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : New-EPRInstallation.ps1 Line : 67 Message : File 'New-EPRInstallation.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : New-EPRInstallation.ps1 Line : 68 Message : File 'New-EPRInstallation.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidAssignmentToAutomaticVariable Severity : Warning ScriptName : Convert-OUString.ps1 Line : 69 Message : The Variable 'Matches' is an automatic variable that is built into PowerShell, assigning to it might have undesired side effects. If assignment is not by design, please use a different name. RuleName : PSReviewUnusedParameter Severity : Warning ScriptName : Write-EPRInstallLog.ps1 Line : 41 Message : The parameter 'LogLevel' has been declared but not used. RuleName : PSUseProcessBlockForPipelineCommand Severity : Warning ScriptName : Write-EPRInstallLog.ps1 Line : 31 Message : Command accepts pipeline input but has not defined a process block. RuleName : PSUseProcessBlockForPipelineCommand Severity : Warning ScriptName : Write-EPRInstallLog.ps1 Line : 33 Message : Command accepts pipeline input but has not defined a process block. RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Write-CustomLog.ps1 Line : 16 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Write-CustomLog.ps1 Line : 17 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Write-CustomLog.ps1 Line : 19 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Write-CustomLog.ps1 Line : 21 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Get-SettingsFromFile.ps1 Line : 36 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Get-SettingsFromFile.ps1 Line : 40 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Get-SettingsFromFile.ps1 Line : 92 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Get-SettingsFromFile.ps1 Line : 141 Message : Line has trailing whitespace RuleName : PSProvideCommentHelp Severity : Information ScriptName : Set-EPREnvironment.ps1 Line : 1 Message : The cmdlet 'Set-EPREnvironment' does not have a help comment. RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-EPRInstallation.ps1 Line : 54 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-EPRInstallation.ps1 Line : 60 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-EPRInstallation.ps1 Line : 94 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-EPRInstallation.ps1 Line : 604 Message : Line has trailing whitespace RuleName : PSUseOutputTypeCorrectly Severity : Information ScriptName : New-EPRInstallation.ps1 Line : 428 Message : The cmdlet 'New-EPRInstallation' returns an object of type 'System.String' but this type is not declared in the OutputType attribute. RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Convert-OUString.ps1 Line : 40 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Write-EPRInstallLog.ps1 Line : 43 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-PostBody.ps1 Line : 30 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-PostBody.ps1 Line : 32 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-PostBody.ps1 Line : 34 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-PostBody.ps1 Line : 50 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-PostBody.ps1 Line : 63 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-PostBody.ps1 Line : 65 Message : Line has trailing whitespace ```

github-actions[bot] commented 10 months ago

PSScriptAnalyzer results:

Errors: [0], Warnings: [4], Information: [22]

``` RuleName : PSAvoidAssignmentToAutomaticVariable Severity : Warning ScriptName : Convert-OUString.ps1 Line : 69 Message : The Variable 'Matches' is an automatic variable that is built into PowerShell, assigning to it might have undesired side effects. If assignment is not by design, please use a different name. RuleName : PSReviewUnusedParameter Severity : Warning ScriptName : Write-EPRInstallLog.ps1 Line : 41 Message : The parameter 'LogLevel' has been declared but not used. RuleName : PSUseProcessBlockForPipelineCommand Severity : Warning ScriptName : Write-EPRInstallLog.ps1 Line : 31 Message : Command accepts pipeline input but has not defined a process block. RuleName : PSUseProcessBlockForPipelineCommand Severity : Warning ScriptName : Write-EPRInstallLog.ps1 Line : 33 Message : Command accepts pipeline input but has not defined a process block. RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Write-CustomLog.ps1 Line : 16 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Write-CustomLog.ps1 Line : 17 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Write-CustomLog.ps1 Line : 19 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Write-CustomLog.ps1 Line : 21 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Get-SettingsFromFile.ps1 Line : 36 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Get-SettingsFromFile.ps1 Line : 40 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Get-SettingsFromFile.ps1 Line : 92 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Get-SettingsFromFile.ps1 Line : 141 Message : Line has trailing whitespace RuleName : PSProvideCommentHelp Severity : Information ScriptName : Set-EPREnvironment.ps1 Line : 1 Message : The cmdlet 'Set-EPREnvironment' does not have a help comment. RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-EPRInstallation.ps1 Line : 54 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-EPRInstallation.ps1 Line : 60 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-EPRInstallation.ps1 Line : 94 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-EPRInstallation.ps1 Line : 606 Message : Line has trailing whitespace RuleName : PSUseOutputTypeCorrectly Severity : Information ScriptName : New-EPRInstallation.ps1 Line : 430 Message : The cmdlet 'New-EPRInstallation' returns an object of type 'System.String' but this type is not declared in the OutputType attribute. RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Convert-OUString.ps1 Line : 40 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Write-EPRInstallLog.ps1 Line : 43 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-PostBody.ps1 Line : 30 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-PostBody.ps1 Line : 32 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-PostBody.ps1 Line : 34 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-PostBody.ps1 Line : 50 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-PostBody.ps1 Line : 63 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-PostBody.ps1 Line : 65 Message : Line has trailing whitespace ```

github-actions[bot] commented 10 months ago

PSScriptAnalyzer results:

Errors: [0], Warnings: [3], Information: [22]

``` RuleName : PSReviewUnusedParameter Severity : Warning ScriptName : Write-EPRInstallLog.ps1 Line : 41 Message : The parameter 'LogLevel' has been declared but not used. RuleName : PSUseProcessBlockForPipelineCommand Severity : Warning ScriptName : Write-EPRInstallLog.ps1 Line : 31 Message : Command accepts pipeline input but has not defined a process block. RuleName : PSUseProcessBlockForPipelineCommand Severity : Warning ScriptName : Write-EPRInstallLog.ps1 Line : 33 Message : Command accepts pipeline input but has not defined a process block. RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Write-CustomLog.ps1 Line : 16 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Write-CustomLog.ps1 Line : 17 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Write-CustomLog.ps1 Line : 19 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Write-CustomLog.ps1 Line : 21 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Get-SettingsFromFile.ps1 Line : 36 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Get-SettingsFromFile.ps1 Line : 40 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Get-SettingsFromFile.ps1 Line : 92 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Get-SettingsFromFile.ps1 Line : 141 Message : Line has trailing whitespace RuleName : PSProvideCommentHelp Severity : Information ScriptName : Set-EPREnvironment.ps1 Line : 1 Message : The cmdlet 'Set-EPREnvironment' does not have a help comment. RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-EPRInstallation.ps1 Line : 54 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-EPRInstallation.ps1 Line : 60 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-EPRInstallation.ps1 Line : 94 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-EPRInstallation.ps1 Line : 606 Message : Line has trailing whitespace RuleName : PSUseOutputTypeCorrectly Severity : Information ScriptName : New-EPRInstallation.ps1 Line : 430 Message : The cmdlet 'New-EPRInstallation' returns an object of type 'System.String' but this type is not declared in the OutputType attribute. RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Convert-OUString.ps1 Line : 40 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Write-EPRInstallLog.ps1 Line : 43 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-PostBody.ps1 Line : 30 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-PostBody.ps1 Line : 32 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-PostBody.ps1 Line : 34 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-PostBody.ps1 Line : 50 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-PostBody.ps1 Line : 63 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-PostBody.ps1 Line : 65 Message : Line has trailing whitespace ```

github-actions[bot] commented 10 months ago

PSScriptAnalyzer results:

Errors: [0], Warnings: [0], Information: [17]

``` RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Get-SettingsFromFile.ps1 Line : 36 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Get-SettingsFromFile.ps1 Line : 40 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Get-SettingsFromFile.ps1 Line : 92 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Get-SettingsFromFile.ps1 Line : 141 Message : Line has trailing whitespace RuleName : PSProvideCommentHelp Severity : Information ScriptName : Set-EPREnvironment.ps1 Line : 1 Message : The cmdlet 'Set-EPREnvironment' does not have a help comment. RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-EPRInstallation.ps1 Line : 54 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-EPRInstallation.ps1 Line : 60 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-EPRInstallation.ps1 Line : 94 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-EPRInstallation.ps1 Line : 606 Message : Line has trailing whitespace RuleName : PSUseOutputTypeCorrectly Severity : Information ScriptName : New-EPRInstallation.ps1 Line : 430 Message : The cmdlet 'New-EPRInstallation' returns an object of type 'System.String' but this type is not declared in the OutputType attribute. RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Convert-OUString.ps1 Line : 40 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-PostBody.ps1 Line : 30 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-PostBody.ps1 Line : 32 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-PostBody.ps1 Line : 34 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-PostBody.ps1 Line : 50 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-PostBody.ps1 Line : 63 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-PostBody.ps1 Line : 65 Message : Line has trailing whitespace ```

github-actions[bot] commented 10 months ago

PSScriptAnalyzer results:

Errors: [0], Warnings: [0], Information: [13]

``` RuleName : PSProvideCommentHelp Severity : Information ScriptName : Set-EPREnvironment.ps1 Line : 1 Message : The cmdlet 'Set-EPREnvironment' does not have a help comment. RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-EPRInstallation.ps1 Line : 54 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-EPRInstallation.ps1 Line : 60 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-EPRInstallation.ps1 Line : 94 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-EPRInstallation.ps1 Line : 606 Message : Line has trailing whitespace RuleName : PSUseOutputTypeCorrectly Severity : Information ScriptName : New-EPRInstallation.ps1 Line : 430 Message : The cmdlet 'New-EPRInstallation' returns an object of type 'System.String' but this type is not declared in the OutputType attribute. RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Convert-OUString.ps1 Line : 40 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-PostBody.ps1 Line : 30 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-PostBody.ps1 Line : 32 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-PostBody.ps1 Line : 34 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-PostBody.ps1 Line : 50 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-PostBody.ps1 Line : 63 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-PostBody.ps1 Line : 65 Message : Line has trailing whitespace ```

github-actions[bot] commented 10 months ago

PSScriptAnalyzer results:

Errors: [0], Warnings: [0], Information: [1]

``` RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : New-EPRInstallation.ps1 Line : 95 Message : Line has trailing whitespace ```