Skip to content

Commit 0670c7b

Browse files
committed
feat(matlab): warn if warning_threshold ~=0
When running code checks
1 parent 49eddce commit 0670c7b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

buildfile.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
plan.DefaultTasks = ["check","test"];
55

66
warning_threshold = 0;
7+
if warning_threshold ~= 0
8+
warning('Code Analyzer warnings are allowed for this codebase');
9+
end
710

811
if isMATLABReleaseOlderThan("R2023b")
912
plan("test") = matlab.buildtool.Task( ...

0 commit comments

Comments
 (0)