aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/src/dialyzer_options.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2017-04-18 10:14:53 +0200
committerHans Bolinder <[email protected]>2017-04-18 10:14:53 +0200
commit3b79995e86b0b5adb9a0083e2b8b16236c536451 (patch)
treebb2f97ca28c0ea3c4649ff8472947ba496093597 /lib/dialyzer/src/dialyzer_options.erl
parenta5b52a94e67ec18f9f5c276f8387d27ab6c32c3b (diff)
parent3dd15a193e4a5aea1dd100d6a4e5ad3401334dfe (diff)
downloadotp-3b79995e86b0b5adb9a0083e2b8b16236c536451.tar.gz
otp-3b79995e86b0b5adb9a0083e2b8b16236c536451.tar.bz2
otp-3b79995e86b0b5adb9a0083e2b8b16236c536451.zip
Merge branch 'hasse/stdlib/linter_check_dialyzer/OTP-14323'
* hasse/stdlib/linter_check_dialyzer/OTP-14323: stdlib: Add checks of the dialyzer attribute to the linter
Diffstat (limited to 'lib/dialyzer/src/dialyzer_options.erl')
-rw-r--r--lib/dialyzer/src/dialyzer_options.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/dialyzer/src/dialyzer_options.erl b/lib/dialyzer/src/dialyzer_options.erl
index 616e8834f5..ec3f41311d 100644
--- a/lib/dialyzer/src/dialyzer_options.erl
+++ b/lib/dialyzer/src/dialyzer_options.erl
@@ -277,6 +277,9 @@ assert_solvers([Term|_]) ->
-spec build_warnings([atom()], dial_warn_tags()) -> dial_warn_tags().
+%% The warning options are checked by the code linter.
+%% The function erl_lint:is_module_dialyzer_option/1 must
+%% be updated if options are added or removed.
build_warnings([Opt|Opts], Warnings) ->
NewWarnings =
case Opt of