Skip to content

Commit

Permalink
Merge branch 'kiko/codescan/compliance-pr/PR-9063/OTP-19359' into maint
Browse files Browse the repository at this point in the history
* kiko/codescan/compliance-pr:
  gh: update compliance check file
  • Loading branch information
kikofernandez committed Nov 14, 2024
2 parents 519e43a + 29838a8 commit 21b5e08
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/scan-code.escript
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
%% %CopyrightEnd%

main(Args) ->
argparse:run(Args, cli(), #{progname => otp_compliance}).
argparse:run(Args, cli(), #{progname => scancode}).

cli() ->
#{ help =>
Expand Down Expand Up @@ -77,6 +77,11 @@ template_option() ->

scancode(#{ file_or_dir := FilesOrDirs}=Config) ->
Files = string:split(FilesOrDirs, " ", all),
scancode0(Files, Config).

scancode0([[]], _) ->
ok;
scancode0(Files, Config) ->
Results = lists:foldl(fun (File, Errors) ->
Command = scancode(Config, File),
case execute(Command, File) of
Expand Down

0 comments on commit 21b5e08

Please sign in to comment.