Skip to content

Commit

Permalink
gh: add log output
Browse files Browse the repository at this point in the history
  • Loading branch information
kikofernandez committed Nov 22, 2024
1 parent fc3a872 commit 93bffff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/scan-code.escript
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ sarif_option() ->
long => "-sarif"}.

scancode(Config) ->
io:format("Files to scan: ~ts~n", [maps:get(file_or_dir, Config, none)]),
ok = cp_files(Config),
scan_folder(Config).

Expand Down Expand Up @@ -139,6 +140,7 @@ execute(Command, Config) ->
Licenses = fetch_licenses(folder_path(Config), Json),

Errors = compliance_check(Licenses),
io:format("Errors: ~ts~n", [Errors]),

maps:get(sarif, Config) =/= undefined andalso
sarif(maps:get(sarif, Config), Errors),
Expand Down

0 comments on commit 93bffff

Please sign in to comment.