Equip: Ubuntu 13.04, Sublime 3 + SublimeLinter(was installed from git).
Also, was installed package cppcheck. (aptitude install cppcheck).
cpplint.py was downloaded from google.
Trouble: Sublime doesn`t emphasize errors C++. (python is OK).
What have done, my setting - user:
{
"sublimelinter_syntax_map":
{
"Python Django": "python",
"C++": "c_cpplint" //*doesn`t work.
// "C++": "/usr/bin/cppheck" *doesn`t work.
},
"sublimelinter_executable_map":
{
"c_cpplint": "/home/name/scripts/cpplint.py", // *doesn`t work
// "c_cpplint":"/usr/bin/cppheck" * doesn`t work
"python": "usr/bin/python"
}
}
What`s the deal?
ST2:
cppcheck do nothing.
via cpplint.py
Many thanks.
Here's the solution I've read for cpplint, works perfectly for me. I did the
instead of downloading the .py and put it somewhere. This seems to do the trick.
Some people say it's the permission issue on cpplint.py. Try chmod 755 might be another solution(I've not tried it though)