cmake-lint
brew install cmake-lint
v1.4.3
Apache-2.0
Static code checker for CMake files
15
30-day installs · #7509
64
90-day · #6677
279
365-day · #6500
106
★ GitHub stars · updated 2y ago
Runtime dependencies
Links
- https://github.com/cmake-lint/cmake-lint
- GitHub: cmake-lint/cmake-lint
- Brew formula source: Formula/c/cmake-lint.rb
Raw metadata
{
"aliases": [],
"alternatives": [],
"build_dependencies": [],
"categories": [],
"caveats": null,
"conflicts_with": [],
"dependencies": [
"python@3.14"
],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Static code checker for CMake files",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:36:29+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "cmake-lint",
"github_default_branch": "develop",
"github_last_commit_at": "2024-05-12T10:44:46Z",
"github_readme_excerpt": "# CMakeLint\n\n[](https://travis-ci.org/cmake-lint/cmake-lint)\n\n\n\n\ncmakelint parses CMake files and reports style issues.\n\ncmakelint requires Python.\n\n## Installation\n\nTo install cmakelint from PyPI, run:\n\n.. code-block:: bash\n\n $ pip install cmakelint\n\n## Usage\n\n Syntax: cmakelint [--config=file] [--filter=-x,+y] \u003cfile\u003e [file] ...\n filter=-x,+y,...\n Specify a comma separated list of filters to apply\n\n config=file\n Use the given file for configuration. By default the file\n $PWD/.cmakelintrc, ~/.config/cmakelintrc, $XDG_CONFIG_DIR/cmakelintrc or\n ~/.cmakelintrc is used if it exists. Use the value \"None\" to use no\n configuration file (./None for a file called literally None) Only the\n option \"filter=\" is currently supported in this file.\n\nRun the `--filter=` option with no filter to see available options. Currently\nthese are:\n\n convention/filename\n linelength\n package/consistency\n readability/logic\n readability/mixedcase\n readability/wonkycase\n syntax\n whitespace/eol\n whitespace/extra\n whitespace/indent\n whitespace/mismatch\n whitespace/newline\n whitespace/tabs\n\nAn example .cmakelintrc file would be as follows:\n\n filter=-whitespace/indent\n\nWith this file in your home directory, running these commands would have the\nsame effect:\n\n cmakelint.py CMakeLists.txt\n cmakelint.py --filter=-whitespace/indent CMakeLists.txt\n\nFilters can optionally be directly enabled/disabled from within a CMake file,\noverriding the configuration from file or CLI argument:\n\n```\n# lint_cmake: \u003c+ or -\u003e\u003cfilter name\u003e\n# e.g.:\n# lint_cmake: -readability/wonkycase\n# add multiple filters as list:\n# lint_cmake: \u003c+/-\u003e\u003cfilter1\u003e, \u003c+/-\u003e\u003cfilter2\u003e\n```\n\ncmakelint can al",
"github_repo": "cmake-lint/cmake-lint",
"github_stars": 106,
"github_topics": [],
"homepage": "https://github.com/cmake-lint/cmake-lint",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 15,
"installs_365d": 279,
"installs_90d": 64,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "Apache-2.0",
"llm_generated_at": null,
"llm_model": null,
"name": "cmake-lint",
"oldnames": [],
"one_liner": null,
"optional_dependencies": [],
"rank_30d": 7509,
"rank_365d": 6500,
"rank_90d": 6677,
"raw_hash": "0b8ad72520fc32f1",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/c/cmake-lint.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [],
"version_head": null,
"version_stable": "1.4.3",
"versioned_formulae": [],
"why_use_this": null
}