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

rebar3 dialyzer support: single-app success typing, project apps in PLT #2249

Merged
merged 1 commit into from
Apr 22, 2020

Conversation

max-au
Copy link
Contributor

@max-au max-au commented Mar 13, 2020

This patch enables two features:

  • in rebar.config, {diazlyer, [{plt_apps, all_apps}]} makes rebar3 to
    add all project files into PLT for subsequent analysis
  • rebar3 ct --app=myapp allows single application success typing

This allows workflow suitable for large codebases:

  • "rebar3 ct dialyzer --succ-typings=false" to build PLT with all apps
  • "rebar3 ct dialyzer --app=myapp" to perform success typing of myapp

This patch enables two features:
 * in rebar.config, {diazlyer, [{plt_apps, all_apps}]} makes rebar3 to
   add all project files into PLT for subsequent analysis
 * rebar3 ct --app=myapp allows single application success typing

This allows workflow suitable for large codebases:
 * "rebar3 ct dialyzer --succ-typings=false" to build PLT with all apps
 * "rebar3 ct dialyzer --app=myapp" to perform success typing of myapp
@max-au max-au mentioned this pull request Mar 13, 2020
@@ -51,7 +52,8 @@ desc() ->
"`get_warnings` - display warnings when altering a PLT file (boolean)\n"
"`plt_apps` - the strategy for determining the applications which included "
"in the PLT file, `top_level_deps` to include just the direct dependencies "
"or `all_deps` to include all nested dependencies*\n"
"or `all_deps` to include all nested dependencies "
Copy link
Collaborator

Choose a reason for hiding this comment

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

would probably keep the first asterisk there too

@ferd ferd merged commit 226ef34 into erlang:master Apr 22, 2020
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