From 5093cf62e03d54d73284c854341bb3ec08e9de08 Mon Sep 17 00:00:00 2001 From: ehennestad Date: Thu, 15 Oct 2026 12:17:10 +0200 Subject: [PATCH] fix: count every checkcode issue as info before R2022b checkcode reports no severity, so the pre-R2022b path assigns all issues to the Info count. It used numel(issueCount), which is the element count of the 1x1 struct and therefore always 1, instead of the number of issues found. Co-Authored-By: Claude Opus 5.5 --- code/+matbox/+tasks/codecheckToolbox.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/+matbox/+tasks/codecheckToolbox.m b/code/+matbox/+tasks/codecheckToolbox.m index b81c753..1fc1dac 100644 --- a/code/+matbox/+tasks/codecheckToolbox.m +++ b/code/+matbox/+tasks/codecheckToolbox.m @@ -30,7 +30,8 @@ issues = checkcode(filesToCheck); issues = cat(1, issues{:}); issueCount.Total = size(issues,1); - issueCount.Info = numel(issueCount); + % checkcode does not report a severity, so every issue counts as info + issueCount.Info = issueCount.Total; [issueCount.Warning, issueCount.Error] = deal(0); else % Use the new code analyzer in R2022b and later