runChecks
R2026bRun all project checks
Description
runs checks on the specified project. The checks detect problems with the project
integrity such as missing files, unsaved files, files not under source control, or
out-of-date derived files.checkResults = runChecks(proj)
Examples
Open the Times Table App project. Use currentProject
to create a project object from the currently loaded project.
openExample("matlab/TimesTableProjectExample")
proj = currentProject;Run all project checks.
checkResults = runChecks(proj)
checkResults =
12×1 ProjectCheckResult array with properties:
ID
Description
Passed
ProblemFilesCreate a table from the checkResults array.
summary = table(checkResults)
summary =
12×3 table
Passed Description ID
______ _______________________________________________________________________ ____________________________________________________________
true "All files under source control are in the project" "Project:Checks:AllFilesUnderSourceControlAreInProject"
true "All project files are under source control" "Project:Checks:AllProjectFilesUnderSourceControl"
true "No models in the project have mismatching file formats" "Project:Checks:MDLToSLX"
true "All project definition files are under source control" "Project:Checks:ProjectDefinitionFilesAreUnderSourceControl"
true "All project files and folders exist on the file system" "Project:Checks:ProjectFilesExist"
true "All project folders on the MATLAB search path are on the project path" "Project:Checks:ProjectPath"
true "All projects in sub-folders are referenced by this project" "Project:Checks:ReferencedSubprojects"
true "No slprj or sfprj folders in the project" "Project:Checks:SLPRJ"
true "Project has no duplicates or missing built-in labels" "Project:Checks:MissingOrDuplicateLabelsInProject"
true "No out of date P-code files" "Project:Checks:OutdatedPcodedFiles"
true "No case mismatch detected in project files, paths, and references" "Project:Checks:PathCaseSensitive"
true "No project files have unsaved changes" "Project:Checks:UnsavedProjectFiles"
Note
Running source control related checks requires a full clone of the
repository. In a CI/CD pipeline, some repository hosting platforms such
as GitLab® default to a shallow clone with a depth of
50 per job. Set the clone and fetch depth to
0 to create a full clone instead.
Use the ID, Passed, and
ProblemFiles properties to get information about an
individual check.
id = checkResults(1).ID status = checkResults(1).Passed problems = checkResults(1).ProblemFiles
Input Arguments
Project, specified as a matlab.project.Project object. Use currentProject to create a project object from the currently
loaded project.
Output Arguments
Project checks, returned as an array of
ProjectCheckResult objects with properties.
Version History
Introduced in R2020aStarting in R2026a, when you run project checks on Windows®, the checks detect case mismatch in project files, paths, and references.
Starting in R2025a, the runChecks function runs a check to
detect duplicates and missing default labels.
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)