dialyzer: fix unmatched return warning tag#11321
Conversation
CT Test Results 2 files 42 suites 16m 9s ⏱️ Results for commit 3c16044. ♻️ This comment has been updated with latest results. To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass. See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally. Artifacts
// Erlang/OTP Github Action Bot |
8472ce2 to
94f9aff
Compare
|
Thank you for the contribution. You can add the following license to |
|
Oh no, I think I committed an older version of the test 😞 |
lucioleKi
left a comment
There was a problem hiding this comment.
Thanks for the fix. Hopefully we only need to fix the license header in this file, and then everything would work :)
| @@ -1,2 +1,2 @@ | |||
| %%% This is an -*- Erlang -*- file. | |||
| %%% | |||
There was a problem hiding this comment.
| %%% | |
| %%% %CopyrightBegin% | |
| %%% | |
| %%% SPDX-License-Identifier: Apache-2.0 | |
| %%% | |
| %%% Copyright 2004-2010 held by the authors. All Rights Reserved. | |
| %%% Copyright Ericsson AB 2009-2026. All Rights Reserved. | |
| %%% |
| %%% distributed under the License is distributed on an "AS IS" BASIS, | ||
| %%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| %%% See the License for the specific language governing permissions and | ||
| %%% limitations under the License. |
There was a problem hiding this comment.
| %%% limitations under the License. | |
| %%% | |
| %%% %CopyrightEnd% | |
| %%% |
Fixes #11320
Dialyzer currently returns the misspelled warning tag
warn_umatched_returnfor unmatched-return warnings fromdialyzer:run/1.This changes the tag to
warn_unmatched_return.The warning option (
unmatched_returns) and the warning payload(
unmatched_return) are already spelled correctly, so this onlyaffects the warning tag returned in the raw warning tuple.
This also adds a test that checks the raw warning tuple returned by
dialyzer:run/1, since the existing unmatched-return coverage mainlychecks formatted warning text.