Skip to content

Commit

Permalink
Fix error id
Browse files Browse the repository at this point in the history
  • Loading branch information
garazdawi committed Nov 19, 2024
1 parent 631e057 commit 9f3d75e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/scan-code.escript
Original file line number Diff line number Diff line change
Expand Up @@ -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}) ->
Expand Down

0 comments on commit 9f3d75e

Please sign in to comment.