➕ adding cpplint
This commit is contained in:
parent
34f8b4f711
commit
baf8b4be7c
3 changed files with 6690 additions and 0 deletions
27
third_party/cpplint/LICENSE
vendored
Executable file
27
third_party/cpplint/LICENSE
vendored
Executable file
|
@ -0,0 +1,27 @@
|
|||
cpplint.py and its corresponding unit tests are Copyright (C) 2009 Google Inc.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above
|
||||
copyright notice, this list of conditions and the following disclaimer
|
||||
in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* Neither the name of Google Inc. nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
80
third_party/cpplint/README.rst
vendored
Executable file
80
third_party/cpplint/README.rst
vendored
Executable file
|
@ -0,0 +1,80 @@
|
|||
cpplint - static code checker for C++
|
||||
=====================================
|
||||
|
||||
.. image:: https://travis-ci.org/cpplint/cpplint.svg?branch=master
|
||||
:target: https://travis-ci.org/cpplint/cpplint
|
||||
|
||||
.. image:: https://img.shields.io/pypi/v/cpplint.svg
|
||||
:target: https://pypi.python.org/pypi/cpplint
|
||||
|
||||
.. image:: https://img.shields.io/pypi/pyversions/cpplint.svg
|
||||
:target: https://pypi.python.org/pypi/cpplint
|
||||
|
||||
.. image:: https://img.shields.io/pypi/status/cpplint.svg
|
||||
:target: https://pypi.python.org/pypi/cpplint
|
||||
|
||||
.. image:: https://img.shields.io/pypi/l/cpplint.svg
|
||||
:target: https://pypi.python.org/pypi/cpplint
|
||||
|
||||
.. image:: https://img.shields.io/pypi/dd/cpplint.svg
|
||||
:target: https://pypi.python.org/pypi/cpplint
|
||||
|
||||
.. image:: https://img.shields.io/pypi/dw/cpplint.svg
|
||||
:target: https://pypi.python.org/pypi/cpplint
|
||||
|
||||
.. image:: https://img.shields.io/pypi/dm/cpplint.svg
|
||||
:target: https://pypi.python.org/pypi/cpplint
|
||||
|
||||
Cpplint is a command-line tool to check C/C++ files for style issues following `Google's C++ style guide <http://google.github.io/styleguide/cppguide.html>`_.
|
||||
Cpplint is developed and maintained by Google Inc. at `google/styleguide <https://github.com/google/styleguide>`_, also see see the `wikipedia entry <http://en.wikipedia.org/wiki/Cpplint>`_
|
||||
|
||||
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.
|
||||
|
||||
|
||||
Installation
|
||||
============
|
||||
|
||||
|
||||
To install cpplint from PyPI, run:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ pip install cpplint
|
||||
|
||||
Then run it with:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ cpplint [OPTIONS] files
|
||||
|
||||
For full usage instructions, run:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ cpplint --help
|
||||
|
||||
Changes
|
||||
-------
|
||||
|
||||
The modifications in this fork are minor fixes and cosmetic changes:
|
||||
|
||||
* more default extensions
|
||||
* python 3 compatibility
|
||||
* customizable file extensions with the --extensions argument
|
||||
* continuous integration on travis
|
||||
* 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
|
||||
|
||||
|
||||
Acknowledgements
|
||||
----------------
|
||||
|
||||
Thanks to Google Inc. for open-sourcing their in-house tool.
|
||||
Thanks to maintainers of the fork
|
||||
|
||||
* `tkruse <https://github.com/tkruse>`_
|
||||
* `mattyclarkson <https://github.com/mattyclarkson>`_
|
||||
* `theandrewdavis <https://github.com/theandrewdavis>`_
|
6583
third_party/cpplint/cpplint.py
vendored
Executable file
6583
third_party/cpplint/cpplint.py
vendored
Executable file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue