ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Sublime​Linter-cppcheck

by SublimeLinter ST3

This linter plugin for SublimeLinter provides an interface to cppcheck.

Details

Installs

  • Total 25K
  • Win 11K
  • OS X 5K
  • Linux 9K
Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29 Jan 28 Jan 27 Jan 26 Jan 25 Jan 24 Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9
Windows 5 13 8 12 6 6 8 8 10 8 7 8 3 7 9 12 12 9 15 10 15 7 9 10 11 13 18 5 15 15 15 16 7 7 5 6 16 9 7 6 5 5 8 4 10 13
OS X 3 8 2 1 2 8 7 1 11 6 0 3 2 2 1 2 2 3 5 3 4 4 3 8 2 5 3 12 5 1 2 4 6 3 7 5 3 4 9 3 0 4 1 4 2 4
Linux 4 7 9 3 8 7 3 2 4 14 6 5 4 12 11 9 7 15 10 3 4 4 13 11 7 15 6 6 5 4 11 9 6 5 13 6 8 6 13 7 3 5 12 8 1 5

Readme

Source
raw.​githubusercontent.​com

SublimeLinter-cppcheck

Build Status

This linter plugin for SublimeLinter provides an interface to cppcheck. It will be used with files that have the “C++” or “C” syntax.

Installation

SublimeLinter must be installed in order to use this plugin.

Please use Package Control to install the linter plugin.

Before using this plugin, you must ensure that cppcheck is installed on your system. To install cppcheck, do one of the following:

  • Install cppcheck from your favorite package manager:
<package manager> install cppcheck

Once cppcheck is installed, you must ensure it is in your system PATH so that SublimeLinter can find it. The docs cover troubleshooting PATH configuration.

Settings

Additional SublimeLinter-cppcheck settings:

Setting Description
std Set the language standard used.
enable A comma-delimited list of checks to enable. Defaults to style.

Examples

For enable, you can use a single string (ex: "style,unusedFunction"), or an array of strings if not inline (ex: ["style", "unusedFunction"]).

For std, you can use a single string for a single value, but you have to use an array of strings for multiple values (ex. ["c89", "c99"]), which means you can't use multiple values in inline settings.