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.
Tasks that you create with the CodeIssuesTask
class do not support
incremental builds. 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(sourceFiles)
sets the SourceFiles
property. The task analyzes the specified source files
and folders, including their subfolders.
task = matlab.buildtool.tasks.CodeIssuesTask(___,Name=Value)
sets 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.
Properties
Examples
Tips
You cannot overwrite or remove the actions of a built-in task, but you can specify additional task actions. For example, append an action to the
Actions
property of a built-in task.plan("myTask").Actions(end+1) = @myAction;