cpplint


Namecpplint JSON
Version 2.0.0 PyPI version JSON
download
home_pagehttps://github.com/cpplint/cpplint
SummaryAutomated checker to ensure C++ files follow Google's style guide
upload_time2024-10-06 19:55:54
maintainercpplint Developers
docs_urlNone
authorNone
requires_pythonNone
licenseBSD-3-Clause
keywords lint python c++
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            #####################################
cpplint - static code checker for C++
#####################################

.. 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 according to `Google's C++ style guide <http://google.github.io/styleguide/cppguide.html>`_.

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.

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.


Installation
============

To install cpplint from PyPI, run:

.. code-block:: bash

    $ pip install cpplint

Externally managed environments
-------------------------------
If you get the "This environment is externally managed" error, try to search and install cpplint with your system's package manager (e.g. apt, rpm, pacman...). If it doesn't exist, you can either package cpplint for your distribution or repeat the steps above with the :code:`--break-system-packages` flag.

Usage
-----
.. code-block:: bash

    $ cpplint [OPTIONS] files

For full usage instructions, run:

.. code-block:: bash

    $ cpplint --help

Changes
=======

* 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 `quite a bit <https://github.com/cpplint/cpplint/blob/master/CHANGELOG.rst>`_ more

Acknowledgements
================

Thanks to Google Inc. for open-sourcing their in-house tool.

Thanks to `our contributors <https://github.com/cpplint/cpplint/graphs/contributors>`_.

Maintainers
-----------

* `@aaronliu0130 <https://github.com/aaronliu0130>`_
* `@jayvdb <https://github.com/jayvdb>`_

Former
^^^^^^

* `@tkruse <https://github.com/tkruse>`_
* `@mattyclarkson <https://github.com/mattyclarkson>`_
* `@theandrewdavis <https://github.com/theandrewdavis>`_

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/cpplint/cpplint",
    "name": "cpplint",
    "maintainer": "cpplint Developers",
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "lint, python, c++",
    "author": null,
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/e7/1d/6965acf4f85495956ebdb80ab2cafd803e39ba866b8370618a120d72938b/cpplint-2.0.0.tar.gz",
    "platform": null,
    "description": "#####################################\ncpplint - static code checker for C++\n#####################################\n\n.. image:: https://img.shields.io/pypi/v/cpplint.svg\n    :target: https://pypi.python.org/pypi/cpplint\n\n.. image:: https://img.shields.io/pypi/pyversions/cpplint.svg\n    :target: https://pypi.python.org/pypi/cpplint\n\n.. image:: https://img.shields.io/pypi/status/cpplint.svg\n    :target: https://pypi.python.org/pypi/cpplint\n\n.. image:: https://img.shields.io/pypi/l/cpplint.svg\n    :target: https://pypi.python.org/pypi/cpplint\n\n.. image:: https://img.shields.io/pypi/dd/cpplint.svg\n    :target: https://pypi.python.org/pypi/cpplint\n\n.. image:: https://img.shields.io/pypi/dw/cpplint.svg\n    :target: https://pypi.python.org/pypi/cpplint\n\n.. image:: https://img.shields.io/pypi/dm/cpplint.svg\n    :target: https://pypi.python.org/pypi/cpplint\n\nCpplint 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>`_.\n\nCpplint 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.\n\nThis 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.\n\n\nInstallation\n============\n\nTo install cpplint from PyPI, run:\n\n.. code-block:: bash\n\n    $ pip install cpplint\n\nExternally managed environments\n-------------------------------\nIf you get the \"This environment is externally managed\" error, try to search and install cpplint with your system's package manager (e.g. apt, rpm, pacman...). If it doesn't exist, you can either package cpplint for your distribution or repeat the steps above with the :code:`--break-system-packages` flag.\n\nUsage\n-----\n.. code-block:: bash\n\n    $ cpplint [OPTIONS] files\n\nFor full usage instructions, run:\n\n.. code-block:: bash\n\n    $ cpplint --help\n\nChanges\n=======\n\n* python 3 compatibility\n* more default file extensions\n* customizable file extensions with the --extensions argument\n* continuous integration on github\n* support for recursive file discovery via the --recursive argument\n* support for excluding files via --exclude\n* JUnit XML output format\n* Overriding repository root auto-detection via --repository\n* Support ``#pragma once`` as an alternative to header include guards\n* ... and `quite a bit <https://github.com/cpplint/cpplint/blob/master/CHANGELOG.rst>`_ more\n\nAcknowledgements\n================\n\nThanks to Google Inc. for open-sourcing their in-house tool.\n\nThanks to `our contributors <https://github.com/cpplint/cpplint/graphs/contributors>`_.\n\nMaintainers\n-----------\n\n* `@aaronliu0130 <https://github.com/aaronliu0130>`_\n* `@jayvdb <https://github.com/jayvdb>`_\n\nFormer\n^^^^^^\n\n* `@tkruse <https://github.com/tkruse>`_\n* `@mattyclarkson <https://github.com/mattyclarkson>`_\n* `@theandrewdavis <https://github.com/theandrewdavis>`_\n",
    "bugtrack_url": null,
    "license": "BSD-3-Clause",
    "summary": "Automated checker to ensure C++ files follow Google's style guide",
    "version": "2.0.0",
    "project_urls": {
        "Download": "https://github.com/cpplint/cpplint",
        "Homepage": "https://github.com/cpplint/cpplint"
    },
    "split_keywords": [
        "lint",
        " python",
        " c++"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d8e7287512c48685c7b8c3928071a667969447f93fbaa078827eb435a08ce35c",
                "md5": "63d9ad10e8e436901cc8c76fd626d9f6",
                "sha256": "f418e1d76a14b44e0757b39faa8bd47543e352ced697afd35a598a0114aec69f"
            },
            "downloads": -1,
            "filename": "cpplint-2.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "63d9ad10e8e436901cc8c76fd626d9f6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 78288,
            "upload_time": "2024-10-06T19:55:49",
            "upload_time_iso_8601": "2024-10-06T19:55:49.157394Z",
            "url": "https://files.pythonhosted.org/packages/d8/e7/287512c48685c7b8c3928071a667969447f93fbaa078827eb435a08ce35c/cpplint-2.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e71d6965acf4f85495956ebdb80ab2cafd803e39ba866b8370618a120d72938b",
                "md5": "a78027e55f0e405ef41c9e7ba3926a9f",
                "sha256": "330daf6bf9a9006b9161af6693661df8f8373d54b2ea6527cd515a8e61d41abb"
            },
            "downloads": -1,
            "filename": "cpplint-2.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "a78027e55f0e405ef41c9e7ba3926a9f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 372823,
            "upload_time": "2024-10-06T19:55:54",
            "upload_time_iso_8601": "2024-10-06T19:55:54.139275Z",
            "url": "https://files.pythonhosted.org/packages/e7/1d/6965acf4f85495956ebdb80ab2cafd803e39ba866b8370618a120d72938b/cpplint-2.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-06 19:55:54",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "cpplint",
    "github_project": "cpplint",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "cpplint"
}
        
Elapsed time: 0.54706s