Skip to main content

cpplint - static code checker for C++

https://img.shields.io/pypi/v/cpplint.svg https://img.shields.io/pypi/pyversions/cpplint.svg https://img.shields.io/pypi/status/cpplint.svg https://img.shields.io/pypi/l/cpplint.svg https://img.shields.io/pypi/dd/cpplint.svg https://img.shields.io/pypi/dw/cpplint.svg https://img.shields.io/pypi/dm/cpplint.svg

Cpplint is a command-line tool to check C/C++ files for style issues following Google’s C++ style guide. Cpplint is developed and maintained by Google Inc. at google/styleguide, also see the wikipedia entry

While Google maintains cpplint, Google is not (very) responsive to issues and pull requests, this fork aims to be (somewhat) more open to add fixes to cpplint to enable fixes, when those fixes make cpplint usable in wider contexts. Also see discussion here https://github.com/google/styleguide/pull/528.

Installation

To install cpplint from PyPI, run:

$ pip install cpplint

Then run it with:

$ cpplint [OPTIONS] files

For full usage instructions, run:

$ cpplint --help

Changes

The modifications in this fork are minor fixes and cosmetic changes, such as:

  • python 3 compatibility

  • more default file extensions

  • customizable file extensions with the –extensions argument

  • continuous integration on github

  • support for recursive file discovery via the –recursive argument

  • support for excluding files via –exclude

  • JUnit XML output format

  • Overriding repository root auto-detection via –repository

  • Support #pragma once as an alternative to header include guards

  • … and a few more (most of which are open PRs on upstream)

Acknowledgements

Thanks to Google Inc. for open-sourcing their in-house tool. Thanks to maintainers of the fork

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cpplint-1.6.0.tar.gz (361.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cpplint-1.6.0-py3-none-any.whl (77.1 kB view details)

Uploaded Python 3

File details

Details for the file cpplint-1.6.0.tar.gz.

File metadata

  • Download URL: cpplint-1.6.0.tar.gz
  • Upload date:
  • Size: 361.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/29.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.4 tqdm/4.60.0 importlib-metadata/4.0.1 keyring/23.0.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.8.10

File hashes

Hashes for cpplint-1.6.0.tar.gz
Algorithm Hash digest
SHA256 8af99f95ed1af2d18e60467cdc13ee0441c2a14d693b7d2dbb71ad427074e491
MD5 6c28ca4d4bae38310ca9a48629e91076
BLAKE2b-256 c50f4f2de12a37b1cbfefabff29ef8d529336c2ceec3226e270b369e8e52c735

See more details on using hashes here.

File details

Details for the file cpplint-1.6.0-py3-none-any.whl.

File metadata

  • Download URL: cpplint-1.6.0-py3-none-any.whl
  • Upload date:
  • Size: 77.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/29.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.4 tqdm/4.60.0 importlib-metadata/4.0.1 keyring/23.0.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.8.10

File hashes

Hashes for cpplint-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d12db1251bb7450e36285ca9d6736ec1b961286c8a4444208eeadb9dc84c4bf9
MD5 7e7928c79313d88a47132ac44036d883
BLAKE2b-256 0e4b9a9f3bebac5f5ee7f33f24003358cf768d341642d73b6813b0a01f32e9d3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page