Skip to content

Commit

Permalink
Merge branch 'maint'
Browse files Browse the repository at this point in the history
  • Loading branch information
kikofernandez committed Nov 14, 2024
2 parents e50d1f6 + 21b5e08 commit e7d77a7
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 e7d77a7

Please sign in to comment.