Debian Codegraph @

README.rst

raw
1 #####################################
2 cpplint - static code checker for C++
3 #####################################
4
5 .. image:: https://img.shields.io/pypi/v/cpplint.svg
6 :target: https://pypi.python.org/pypi/cpplint
7
8 .. image:: https://img.shields.io/pypi/pyversions/cpplint.svg
9 :target: https://pypi.python.org/pypi/cpplint
10
11 .. image:: https://img.shields.io/pypi/status/cpplint.svg
12 :target: https://pypi.python.org/pypi/cpplint
13
14 .. image:: https://img.shields.io/pypi/l/cpplint.svg
15 :target: https://pypi.python.org/pypi/cpplint
16
17 .. image:: https://img.shields.io/pypi/dd/cpplint.svg
18 :target: https://pypi.python.org/pypi/cpplint
19
20 .. image:: https://img.shields.io/pypi/dw/cpplint.svg
21 :target: https://pypi.python.org/pypi/cpplint
22
23 .. image:: https://img.shields.io/pypi/dm/cpplint.svg
24 :target: https://pypi.python.org/pypi/cpplint
25
26 Cpplint is a command-line tool to check C/C++ files for style issues according to `Google's C++ style guide <http://google.github.io/styleguide/cppguide.html>`_.
27
28 Cpplint used to be developed and maintained by Google Inc. at `google/styleguide <https://github.com/google/styleguide>`_. Nowadays, `Google is no longer maintaining the public version of cpplint <https://github.com/google/styleguide/pull/528#issuecomment-592315430>`_, and pretty much everything in their repo's PRs and issues about cpplint have gone unimplemented.
29
30 This fork aims to update cpplint to modern specifications, and be (somewhat) more open to adding fixes and features to make cpplint usable in wider contexts.
31
32
33 Installation
34 ============
35
36 Use [`pipx`](https://pipx.pypa.io) to install cpplint from PyPI, run:
37
38 .. code-block:: bash
39
40 $ pipx install cpplint
41
42 Usage
43 -----
44 .. code-block:: bash
45
46 $ cpplint [OPTIONS] files
47
48 For full usage instructions, run:
49
50 .. code-block:: bash
51
52 $ cpplint --help
53
54 cpplint can also be run as a pre-commit hook by adding to `.pre-commit-config.yaml`:
55
56 .. code-block:: yaml
57
58 - repo: https://github.com/cpplint/cpplint
59 rev: 2.0.0
60 hooks:
61 - id: cpplint
62 args:
63 - --filter=-whitespace/line_length,-whitespace/parens
64
65 Changes
66 =======
67
68 * python 3 compatibility
69 * more default file extensions
70 * customizable file extensions with the --extensions argument
71 * continuous integration on github
72 * support for recursive file discovery via the --recursive argument
73 * support for excluding files via --exclude
74 * JUnit XML output format
75 * Overriding repository root auto-detection via --repository
76 * Support ``#pragma once`` as an alternative to header include guards
77 * ... and `quite a bit <https://github.com/cpplint/cpplint/blob/master/CHANGELOG.rst>`_ more
78
79 Acknowledgements
80 ================
81
82 Thanks to Google Inc. for open-sourcing their in-house tool.
83
84 Thanks to `our contributors <https://github.com/cpplint/cpplint/graphs/contributors>`_.
85
86 Maintainers
87 -----------
88
89 * `@aaronliu0130 <https://github.com/aaronliu0130>`_
90 * `@jayvdb <https://github.com/jayvdb>`_
91
92 Former
93 ^^^^^^
94
95 * `@tkruse <https://github.com/tkruse>`_
96 * `@mattyclarkson <https://github.com/mattyclarkson>`_
97 * `@theandrewdavis <https://github.com/theandrewdavis>`_