This linter plugin for SublimeLinter provides an interface to cpplint. It will be used with files that have the "C" or "C++" syntax.
SublimeLinter must be installed in order to use this plugin.
Please use Package Control to install the linter plugin.
Before using this plugin, ensure that cpplint is installed on your system.
To install cpplint, do the following:
-
Install
cpplintby typing the following in a terminal:[sudo] pip install cpplint
Please make sure that the path to cpplint is available to SublimeLinter.
The docs cover troubleshooting PATH configuration.
- SublimeLinter settings: http://sublimelinter.com/en/latest/settings.html
- Linter settings: http://sublimelinter.com/en/latest/linter_settings.html
Additional settings for SublimeLinter-cpplint
| Setting | Description |
|---|---|
| filter | A comma-separated list of category-filters to apply |
| linelength | The allowed line length (with cpplint >= 0.0.6) |
filter can be a single string (anywhere) or array of strings (anywhere but inline).