필터 지우기
필터 지우기

List of MATLAB code analyzer message IDs

조회 수: 7 (최근 30일)
Oren
Oren 2014년 7월 29일
답변: Narfi 2023년 3월 22일
I'd like to find a list of the message IDs of the built-in code analyzer warning messages used for suppressing those messages either on a single line or in a file (see here ). I know you can search by message ID, but the list in the preferences (see here ) doesn't actually show the ID itself. Any help would be appreciated, thanks!

채택된 답변

Oren
Oren 2014년 7월 30일
The answer was found in a parallel SO thread. In short:
msgs = mlint('-allmsg', filename)
where filename can be any arbitrary filename. This works with the checkcode function as well. The resulting struct must be parsed to separate message IDs and messages, but this shouldn't be too difficult. An alternative solution was proposed as well, see the thread for details.

추가 답변 (1개)

Narfi
Narfi 2023년 3월 22일
The entirety of the Code Analyzer checks is now listed in the documentation: https://www.mathworks.com/help/matlab/matlab_env/index-of-code-analyzer-checks.html

카테고리

Help CenterFile Exchange에서 Debugging and Analysis에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by