Skip to content
/ cpplint Public

Fast, cross-platform C++ style checker for Node.js compatible runtimes using cpplint-cpp

License

Notifications You must be signed in to change notification settings

lovell/cpplint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cpplint

Fast, cross-platform C++ style checker for Node.js compatible runtimes.

Under the hood you'll find cpplint-cpp, a C++ re-implementation of the original Python-based cpplint.

Prebuilt binaries are made available for Linux, macOS and Windows running on x64 and ARM64 CPUs. These are currently re-packaged copies of the upstream wheels for version 0.3.0.

There is no runtime dependency on Python or clang.

Install

To run from the command line:

npx @cpplint/cli --help

To add to a project's devDependencies:

npm install --save-dev @cpplint/cli

To use as a lifecycle script in package.json:

{
  "scripts": {
    "lint:cpp": "cpplint src/*"
  }
}

Configure

Rules are specified in one or more CPPLINT.cfg files, which typically contain a list of filters to apply or ignore.

set noparent

linelength=120

filter=-build/include
filter=+build/include_subdir
...

About

Fast, cross-platform C++ style checker for Node.js compatible runtimes using cpplint-cpp

Resources

License

Stars

Watchers

Forks