Skip to content

Commit 602a0e9

Browse files
committed
buildtool: generic func name
1 parent a910511 commit 602a0e9

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

buildfile.m

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,24 @@
77
pkg_name = "+matmap3d";
88

99
if isMATLABReleaseOlderThan("R2023b")
10-
plan("test") = matlab.buildtool.Task(Actions=@legacyTestTask);
10+
plan("test") = matlab.buildtool.Task(Actions=@legacy_test);
1111
else
12-
plan("check") = matlab.buildtool.tasks.CodeIssuesTask(pkg_name, IncludeSubfolders=true);
12+
plan("check") = matlab.buildtool.tasks.CodeIssuesTask(pkg_name, IncludeSubfolders=true, ...
13+
WarningThreshold=0);
1314
plan("test") = matlab.buildtool.tasks.TestTask("test", Strict=false);
1415
end
1516

1617
if ~isMATLABReleaseOlderThan("R2024a")
1718
plan("coverage") = matlab.buildtool.tasks.TestTask(Description="code coverage", SourceFiles="test", Strict=false, CodeCoverageResults="code-coverage.xml");
1819
end
1920

20-
plan("publish") = matlab.buildtool.Task(Description="HTML inline doc generate", Actions=@publishTask);
21+
plan("publish") = matlab.buildtool.Task(Description="HTML inline doc generate", Actions=@publish_html);
2122

2223

2324
end
2425

2526

26-
function legacyTestTask(context)
27+
function legacy_test(context)
2728
r = runtests(fullfile(context.Plan.RootFolder, "test"), Strict=false);
2829
% Parallel Computing Toolbox takes more time to startup than is worth it for this task
2930

@@ -32,7 +33,7 @@ function legacyTestTask(context)
3233
end
3334

3435

35-
function publishTask(context)
36+
function publish_html(context)
3637
outdir = fullfile(context.Plan.RootFolder, "docs");
3738

3839
publish_gen_index_html("matmap3d", ...

0 commit comments

Comments
 (0)