77pkg_name = " +matmap3d" ;
88
99if isMATLABReleaseOlderThan(" R2023b" )
10- plan(" test" ) = matlab .buildtool .Task(Actions = @legacyTestTask );
10+ plan(" test" ) = matlab .buildtool .Task(Actions = @legacy_test );
1111else
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 );
1415end
1516
1617if ~isMATLABReleaseOlderThan(" R2024a" )
1718 plan(" coverage" ) = matlab .buildtool .tasks .TestTask(Description = " code coverage" , SourceFiles= " test" , Strict= false , CodeCoverageResults= " code-coverage.xml" );
1819end
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
2324end
2425
2526
26- function legacyTestTask (context )
27+ function legacy_test (context )
2728r = 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)
3233end
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