codeIssues
Description
The codeIssues
object stores issues found by the MATLAB® Code Analyzer. The issues found in one or more specified files or folders can be
sorted and filtered, either programmatically on the command line or interactively in the Code
Analyzer app.
In R2023a: Certain issues can be fixed using the fix
function.
In R2023b: Content of a codeIssues
object can be exported
using export
.
Creation
Description
identifies code issues
for the current folder and returns a issues
= codeIssuescodeIssues
object.
analyzes the files or folders specified by issues
= codeIssues(names
)names
. The files to
analyze must be valid MATLAB code or app files (*.m, *.mlx, or *.mlapp).
changes the files used in analysis based on one or more name-value arguments. For example,
issues
= codeIssues(names
,Name=Value
)issues = codeIssues(names,IncludeSubfolders=false)
excludes
subfolders of names
from analysis.
Input Arguments
Properties
Examples
Tips
Use
jsonencode
to generate a JSON format string of thecodeIssues
object.