Scan CMake files for lint.
PATH
.VS Code CMake-Lint scans all of your CMake files when you open your project or when you save your cmake-lint configuration file. It also scans an individual CMake file when you save the file. If you need to manually scan your project or the active file, you can run one of these commands.
CMake Lint: Scan all CMake Files
— Run cmake-lint
on all CMake files in
your workspace.CMake Lint: Scan the Current File
— Run cmake-lint
on the CMake file that
is active in your text editor.VS Code CMake lint reports issues as warnings in the Problems view. It also highlights offending lines with warning squiggles in the text editor.