From 28b2c14b9522ba1a5e0e2997005f8a5c7eb82e68 Mon Sep 17 00:00:00 2001 From: Vadim Tsvetkov Date: Tue, 26 Nov 2024 20:11:22 +0300 Subject: [PATCH] fix: MixMachine.Format.Sarif.normalize/1 for {line, col} --- lib/mix_machine/format/sarif.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/mix_machine/format/sarif.ex b/lib/mix_machine/format/sarif.ex index fcc0d68..9779d07 100644 --- a/lib/mix_machine/format/sarif.ex +++ b/lib/mix_machine/format/sarif.ex @@ -104,5 +104,6 @@ defmodule MixMachine.Format.Sarif do defp normalize(nil), do: {1, 1, 1, 1} defp normalize(line) when is_integer(line), do: {line, 1, line, 1} + defp normalize({line, col}), do: {line, col, line, col} defp normalize(tuple), do: tuple end