# cheshirekow/cmake_format

Source code formatter for cmake listfiles.

Repository: https://github.com/cheshirekow/cmake_format
Canonical: https://ross.abutalabs.com/products/cmake_format
Language: Python
License: GPL-3.0
License Family: copyleft
Topics: formatters, cmake, devtools
Last push: 2024-05-01T11:58:27+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3765, "days_push": 854, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1071, forks 122 (observed 2026-08-28T04:03:28.260801+00:00)

## What it is
cmake_format is a source code formatter for CMake listfiles, written in Python. It parses CMake files and reformats them with consistent layout, indentation, and argument alignment.

## Use cases
- format cmake files consistently across a project
- enforce cmake style in CI
- auto-format cmake listfiles on save
- clean up messy CMakeLists.txt files
- standardize cmake formatting across a team

## When to choose
- you maintain CMake-based C/C++ projects and want consistent formatting
- you want automated cmake style enforcement in code review or CI

## When to avoid
- you need formatting for languages other than CMake
- you need a full CMake linter or static analyzer

## Facets
- artifact type: cli-tool
- maturity: active
- function: formatter, cli, developer-tools
- domain: developer-tools, version-control
- platform: cli, cross-platform, python
- tags: cmake, code-formatting, linting, command-line

## Member repositories
- cheshirekow/cmake_format (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:28.260801+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:53:48.660287+00:00, confidence not recorded.
  - readme: https://github.com/cheshirekow/cmake_format (fetched 2026-08-28T04:03:28.260801+00:00, sha f6d457cb98f4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
