Skip to content

Commit

Permalink
Fixing analyzer violations
Browse files Browse the repository at this point in the history
  • Loading branch information
Piedone committed Jan 10, 2024
1 parent 1538d9e commit 2a989f9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

function Init-OrchardCoreSolution
{
[Diagnostics.CodeAnalysis.SuppressMessage('PSUseApprovedVerbs', '', Justification = 'Necessary for backwards compatibility.')]
[CmdletBinding()]
Param
(
Expand All @@ -20,7 +21,8 @@ function Init-OrchardCoreSolution

Process
{
$warningMessage = 'Warning: "Init-OrchardCoreSolution" is the old and deprecated name of this module. ' +
$warningMessage =

Check failure on line 24 in OrchardCore/Init-OrchardCoreSolution/Init-OrchardCoreSolution.psm1

View workflow job for this annotation

GitHub Actions / powershell-static-code-analysis / PowerShell Static Code Analysis (ubuntu-22.04)

PSAvoidTrailingWhitespace: Line has trailing whitespace
'Warning: "Init-OrchardCoreSolution" is the old and deprecated name of this module. ' +

Check failure on line 25 in OrchardCore/Init-OrchardCoreSolution/Init-OrchardCoreSolution.psm1

View workflow job for this annotation

GitHub Actions / powershell-static-code-analysis / PowerShell Static Code Analysis (ubuntu-22.04)

PSUseConsistentIndentation: Indentation not consistent
'Use "Initialize-OrchardCoreSolution" instead.'

Check failure on line 26 in OrchardCore/Init-OrchardCoreSolution/Init-OrchardCoreSolution.psm1

View workflow job for this annotation

GitHub Actions / powershell-static-code-analysis / PowerShell Static Code Analysis (ubuntu-22.04)

PSUseConsistentIndentation: Indentation not consistent
Write-Warning $warningMessage

Expand Down

0 comments on commit 2a989f9

Please sign in to comment.