devops.scripts.cpp_checks

Module defining C++ check rules.

Functions

cpp_checks(*[, license_header, dirs, ...])

Run C++ code quality checks.

devops.scripts.cpp_checks.cpp_checks(*, license_header=None, dirs=None, incremental=<typer.models.OptionInfo object>, state_file=<typer.models.OptionInfo object>, no_fail_fast=<typer.models.OptionInfo object>, base_ref=<typer.models.OptionInfo object>, jobs=<typer.models.OptionInfo object>)[source]

Run C++ code quality checks.

Parameters:
  • license_header (str | None) – The path to the license header file. If None, uses the global configuration.

  • dirs (list[str] | None) – List of directories to check. If None, uses all directories in the current directory.

  • incremental (bool) – When True, only re-check files that are new, previously failed, or modified since the last run. Can also be enabled via incremental_state_file in the [cpp] TOML section.

  • state_file (str | None) – Explicit path to the JSON state file. Implies incremental mode. When omitted, falls back to the TOML setting or the default path.

  • no_fail_fast (bool) – When True, all files are checked even if some fail. Overrides fail_fast in the [cpp] TOML section.

  • base_ref (str | None) – Git commit hash or branch name. When given, only files changed relative to it are checked, overriding the file selection settings in the [cpp] TOML section.

  • jobs (int | None) – Number of files to check concurrently. When omitted, falls back to parallel_jobs in the [cpp] TOML section (default 1, serial).

Return type:

None