Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.3] PISTON-1088: more DRY Makefile dialyze targets #6597

Conversation

danielfinke
Copy link
Member

  • also make the output of check-dialyzer.escript consistently "nothing"
    whether using --bulk, --hard, or no flags at all

@@ -10,7 +10,6 @@

main([]) ->
print_help();
main([_KazooPLT]) -> 'ok';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This clause was previously used to handle when no files were passed

@@ -38,8 +37,7 @@ print_help() ->
getopt:usage(option_spec_list(), "ERL_LIBS=deps/:core/:applications/ " ++ Script ++ " .kazoo.plt [args] [file.beam | path/ebin/ ...]"),
halt(1).

handle(_KazooPLT, _Options, []) ->
print_help();
handle(_KazooPLT, _Options, []) -> 'ok';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But this clause is needed to handle when no files were passed AND there was a flag such as --bulk or --hard passed. And it will handle the L13 clause as well.

- also make the output of check-dialyzer.escript consistently "nothing"
  whether using --bulk, --hard, or no flags at all
@danielfinke danielfinke force-pushed the pr-PISTON-1088-more-dry-makefile-dialyze-targets branch from ae9e981 to 1f9abb2 Compare June 29, 2020 17:55
@danielfinke danielfinke changed the title PISTON-1088: more DRY Makefile dialyze targets [4.3] PISTON-1088: more DRY Makefile dialyze targets Jun 29, 2020
jamesaimonetti pushed a commit that referenced this pull request Jun 29, 2020
- also make the output of check-dialyzer.escript consistently
"nothing" whether using --bulk, --hard, or no flags at all
@jamesaimonetti
Copy link
Member

Merged!

@danielfinke danielfinke deleted the pr-PISTON-1088-more-dry-makefile-dialyze-targets branch June 29, 2020 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants