Linting with SublimeLinter
Linting is a term for flagging suspicious and non-portable constructs, likely to be bugs in any written language. SublimeLinter is a plugin that supports linting and has the following linters built in:
C/C++: This lints via
cppcheck
CoffeeScript: This lints
via coffee –s –l
CSS: This lints via built-in
csslint
Haml: This checks syntax via
haml –c
HTML: This lints via
tidy
Java: This lints via
javac –Xlint
JavaScript: This lints via built in
jshint
,jslint
, orgjslint
(if installed)Lua: This checks syntax via
luac
Objective-J: This lints via built in
capp_lint
Perl: This lints via
Perl::Critic
or syntax and deprecation check viaperl-c
PHP: This checks syntax via
php –l
Puppet: This checks syntax via
puppet parser validate
Python: This is a native, moderately-complete lint
Ruby: This checks syntax via
ruby –wc
XML: This lints via
xmllint
Installing SublimeLinter
We can install this plugin by using the Package Control that we installed earlier. Let's...