Skip to content

Latest commit

 

History

History
58 lines (36 loc) · 1.37 KB

cmake-format.md

File metadata and controls

58 lines (36 loc) · 1.37 KB
description title layout
Learn how to install, configure, and run CMake-Format with Trunk Check to ensure consistent formatting and best practices for your CMake scripts.
Trunk | How to run cmake-format
title description tableOfContents outline pagination
visible
true
visible
visible
true
visible
true
visible
true

cmake-format

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

You can enable the cmake-format formatter 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 Linters for more info.

Links