Skip to content

Commit

Permalink
Intentional analyzer violation
Browse files Browse the repository at this point in the history
  • Loading branch information
Piedone committed Jul 3, 2024
1 parent 7b39241 commit 7694bab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lombiq.Analyzers.PowerShell/Invoke-Analyzer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,14 @@ function Find-Recursively([string] $Path = '.', [string[]] $IncludeFile, [string

function Write-FileError([string] $Message, [string] $Path, [int] $Line = 0, [int] $Column = 0)
{
if ($Path) { $Path = Get-Item $Path }
if ($Path) { $Path = Get-Item $Path }

if ($ForGitHubActions)
{
$Message = $Message -replace '\s*(\r?\n\s*)+', ' '
Write-Output "::error::$(if ($Path) { "$(Resolve-Path -Relative -Path $Path)($Line,$Column): " })$Message"
}

elseif ($ForMsBuild)
{
if (-not $Message.Contains(':')) { $Message = ": $Message" }
Expand Down

0 comments on commit 7694bab

Please sign in to comment.