I spent too much of my morning looking around for a good “linting” plugin for Sublime Text 2, so I figured I might share my findings. As a quick side note, we’ve pretty much all switched over to Sublime Text 2 here at BaM because it’s cross-platform (we’ve got devs on Macs and PCs) and has a ton of nice features like package control (via a plugin), introspection, code-collapsing, etc.
Installation and Setup
I used the Package Control plugin to install (hit
Command+Shift+P on OS X,
Control+Shift+P on Linux/Windows to launch). It was a quick and painless install, but to get what I wanted, I had to tweak a few of the settings.
I also changed the linter to run on each save.
To get to the settings, navigate to
Preferences->Package Settings->SublimeLinter->Settings - Default.
Make sure to check out the README for the plugin. It has a ton of other great features like per-project settings and the ability to create new linters.
Let us know if this works out for you or if you come across any better solutions.