cmake-format

cmake-format is a linter for C, C++.

You can enable the cmake-format linter with:

trunk check enable cmake-format

Auto Enabling

cmake-format will be auto-enabled if any of its config files are present: .cmake-format.json, .cmake-format.py, .cmake-format.yaml.

Settings

cmake-format supports the following config files:

  • .cmake-format.json

  • .cmake-format.py

  • .cmake-format.yaml

  • cmake-format.json

  • cmake-format.py

  • cmake-format.yaml

You can move these files to .trunk/configs and trunk check will still find them. See Moving Linter Configs for more info.

Last updated