CMake Analyzer (cmana) is a tool that helps developers to find common issues in CMake code. It searches for deprecated commands/keywords, bad codestyle, potential problems.
Project description
CMake Analyzer
CMake Analyzer (cmana
) is a tool that helps developers to find common issues
in CMake code. It searches for deprecated commands/keywords, bad codestyle,
potential problems.
Installation
$ pip install cmake-analyzer
Usage
This tool works by both python -m cmake_analyzer
and cmana
console commands.
Simple usage pattern:
$ cmana -p /some/directory/to/your/project
Full help is available by -h
key as the following:
$ cmana -h
usage: cmana [-h] [-c CHECKS [CHECKS ...]] [-v] [--custom-checks PATH]
(-p PATH | --list-checks) [--exclude EXCLUDE [EXCLUDE ...] |
--include INCLUDE [INCLUDE ...]]
optional arguments:
-h, --help show this help message and exit
-c CHECKS [CHECKS ...], --checks CHECKS [CHECKS ...]
enable checks in the following format: style* legacy*
-v, --verbose enable verbose logging for large projects
--custom-checks PATH directory with user-defined checks
-p PATH, --path PATH path to start check from
--list-checks list all available checks
--exclude EXCLUDE [EXCLUDE ...]
filter out files by mask
--include INCLUDE [INCLUDE ...]
include only files by mask
License
You may use CMake Analyzer under the terms of the MIT license
described in the enclosed LICENSE.md
file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cmake-analyzer-0.1.tar.gz
(8.6 kB
view hashes)
Built Distribution
Close
Hashes for cmake_analyzer-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | caf9e7310d31d1d61b8ee7433b2390e1bef9e0784c375bbe01b5f5dba73e36e2 |
|
MD5 | e19b707d56b5437e6bb63a9dc6f78286 |
|
BLAKE2b-256 | 5bb7aacb68ea476fe1a6d887037cf1eef1fa6ae065a05175bc8f636b0fed405c |