You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# macros defined in https://github.com/erlang/otp/blob/928d03e6da416208fce7b9a7dbbfbb4f25d26c37/lib/dialyzer/src/dialyzer.hrl#L36
14
-
# as of OTP 27
14
+
# as of OTP 28
15
15
16
16
# NOTE the allowed options in vscode extension need to be updated basing on https://github.com/erlang/otp/blob/412bff5196fc0ab88a61fe37ca30e5226fc7872d/lib/dialyzer/src/dialyzer_options.erl#L495
17
17
@default_warns[
@@ -38,6 +38,14 @@ defmodule ElixirLS.LanguageServer.Dialyzer.Analyzer do
38
38
]
39
39
else
40
40
[]
41
+
end)++
42
+
(ifString.to_integer(System.otp_release())>=28do
43
+
[
44
+
# warn_contract_opaque is enabled by default since OTP 26
45
+
:warn_contract_opaque
46
+
]
47
+
else
48
+
[]
41
49
end)
42
50
43
51
@non_default_warns[
@@ -66,6 +74,14 @@ defmodule ElixirLS.LanguageServer.Dialyzer.Analyzer do
0 commit comments