From 9f3d75e58954a758fb66215f2502d2e63fd5a13f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Backstr=C3=B6m?= Date: Tue, 19 Nov 2024 15:19:59 +0100 Subject: [PATCH] Fix error id --- scripts/scan-code.escript | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/scan-code.escript b/scripts/scan-code.escript index 5ed4d12e1f74..d9eacc3ff2f7 100755 --- a/scripts/scan-code.escript +++ b/scripts/scan-code.escript @@ -233,8 +233,10 @@ sarif(Errors) -> } ] }). +error_type_to_id({license_not_approved, null}) -> + atom_to_binary(no_license_found); error_type_to_id(ErrorType) -> - atom_to_binary(element(1, ErrorType)). + base64:encode(integer_to_binary(erlang:phash2(ErrorType))). error_type_to_text({license_not_recognised, L}) -> <<"License not recognized: ", L/binary>>; error_type_to_text({license_not_approved, null}) ->