matlab.buildtool.tasks.CodeIssuesTask Class
Namespace: matlab.buildtool.tasks
Superclasses: matlab.buildtool.Task
Description
The matlab.buildtool.tasks.CodeIssuesTask class provides a task for
identifying code issues using the MATLAB® Code Analyzer.
Note
Tasks that you create with the CodeIssuesTask class do not support
incremental builds because they run regardless of whether they are up to date. If you rerun
a build containing a CodeIssuesTask instance, the build tool runs the
task.
Creation
Description
task = matlab.buildtool.tasks.CodeIssuesTask
creates a task for identifying code issues in the current folder and its subfolders. The
task fails if it identifies any code errors.
task = matlab.buildtool.tasks.CodeIssuesTask(
creates a task that analyzes the specified source files and folders, including their
subfolders.sourceFiles)
task = matlab.buildtool.tasks.CodeIssuesTask(___,Name=Value)
sets writable properties using
one or more name-value arguments in addition to any of the input argument combinations in
previous syntaxes. You can also set the Description and
Dependencies properties, which the class inherits from the Task class,
using name-value arguments. For example, task =
matlab.buildtool.tasks.CodeIssuesTask(WarningThreshold=0) creates a task that
fails if it identifies any warnings.
Input Arguments
Properties
Examples
Tips
You cannot overwrite or remove the action of a built-in task, but you can specify additional task actions. For example, append an action to the
Actionsproperty of a built-in task.plan("myTask").Actions(end+1) = @myAction;