clint
Configure a CMake project with a compilation database and analyze selected
sources using clang-tidy. Check selection and diagnostics follow the project’s
.clang-tidy configuration. The command produces a score, badge, lint
report, and optional timeline.
For programmatic usage, see cmake, clint.
Default run name: clint
cikit clint . -G Ninja --source src/main.cpp --timeline-limit 10
Arguments and options
project_dir: CMake source directory (default: project root).-b, --build-name NAME: CMake build-directory name (default:clint).-G, --generator NAME: CMake generator (default: CMake selection).-D, --define NAME=VALUE: Additional CMake definition; repeatable.--source FILE: Source relative toproject_dir; repeatable (default: macro selection).--clean/--no-clean: Clean before configuration (default: clean).--timeline-limit N: Maximum history entries;0disables the timeline.
Requires: CMake, a suitable compiler/toolchain, clang-tidy, cloc, and PyYAML for diagnostic parsing.
Results: Lint metrics, badge, RST report, and optional score timeline. Analysis errors can result in a failing CI status while preserving the report.