Skip to main content

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

This version

0.1

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)

Uploaded Source

Built Distribution

cmake_analyzer-0.1-py3-none-any.whl (13.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page