platformio_lint

Generate a PlatformIO compilation database and analyze the source files using clang-tidy. Analysis checks are configured through .clang-tidy.

For programmatic usage, see platformio, clint.

Default run name: platformio_lint

cikit platformio_lint . -e native --source src/main.cpp

Arguments and options

  • project_dir: PlatformIO project directory (default: project root).

  • -e, --environment NAME: Environment to analyze (default: project selection).

  • --source FILE: Source relative to project_dir; repeatable (default: macro selection).

  • --timeline-limit N: Maximum history entries; 0 disables the timeline.

Requires: PlatformIO Core, clang-tidy, cloc, PyYAML, and the platform’s toolchain.

Results: Lint metrics, score badge, RST lint report, and optional timeline. Detected analysis failures affect the CI status.