Skip to content

Commit

Permalink
Using a relative path for the violating PS scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Piedone committed Jul 3, 2024
1 parent a8b755f commit 7b39241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lombiq.Analyzers.PowerShell/Invoke-Analyzer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function Write-FileError([string] $Message, [string] $Path, [int] $Line = 0, [in
if ($ForGitHubActions)
{
$Message = $Message -replace '\s*(\r?\n\s*)+', ' '
Write-Output "::error::$(if ($Path) { "$Path($Line,$Column): " })$Message"
Write-Output "::error::$(if ($Path) { "$(Resolve-Path -Relative -Path $Path)($Line,$Column): " })$Message"
}
elseif ($ForMsBuild)
{
Expand Down

0 comments on commit 7b39241

Please sign in to comment.