forked from erlang/otp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dialyzer: Expand Dialyzer config file options
The Dialyzer config file previously allowed setting fallback modules to analyse and report warnings for in the absence of explicitly given modules in the arguments. This change extends the config file to include warnings to toggle and modifications to the beginning and end of the path, allowing users to factor these out of their command line arguments. This change also fixes apps being in default_warning_apps without being in default_apps causing an inconsistency. Now all warning apps are implicitly added to the apps to analyze. An example Dialyzer config that makes use of the new options: ```erlang {incremental, {default_apps,[stdlib,kernel,erts]}, {default_warning_apps,[stdlib]} }. {warnings, [no_improper_lists]}. {add_pathsa,["/users/samwise/potatoes/ebin"]}. {add_pathsz,["/users/smeagol/fish/ebin"]}. ``` This config expresses that: - If no apps/warnings apps are given explicitly, analyse stdlib, kernel and erts, and report warnings for stdlib only. - Set the no_improper_lists option to suppress warnings about improper list construction - Add /users/samwise/potatoes/ebin to the start of the path, and /users/smeagol/fish/ebin to the end of it
- Loading branch information
Showing
8 changed files
with
323 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.