Rob Agar
Rob Agar

Reputation: 12459

Disable SublimeLinter for a large C file in a C++ project

I have a C++ project with one very large C file (the excellent lightweight mongoose web server) which really canes cppcheck. Is there a way to disable the automatic lint for this file alone?

Or failing that, how can I switch off automatic linting for all C files, but keeping it on for C++?

Upvotes: 0

Views: 383

Answers (1)

AGS
AGS

Reputation: 14498

You can edit this file

/Library/Application Support/Sublime Text 2/Packages/SublimeLinter/SublimeLinter.sublime-settings

and add languages that SublimeLinter will ignore:

// An array of linter names to disable. Names should be lowercase.
"sublimelinter_disable":
[
],

You might also map this command to a key/combination:

{
    "caption": "SublimeLinter: Disable Linting",
    "command": "sublimelinter_disable",
    "args": {"action": "off"}
},

Upvotes: 1

Related Questions