Skip to content

Commit

Permalink
Revert "Intentional analyzer violation"
Browse files Browse the repository at this point in the history
This reverts commit 7694bab.
  • Loading branch information
Piedone committed Jul 3, 2024
1 parent 7694bab commit f6085a6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Lombiq.Analyzers.PowerShell/Invoke-Analyzer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,13 @@ 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 f6085a6

Please sign in to comment.