Clean code linters
Make sure your code matches your style guide with these essential code linters.
JavaScript
Keep your code looking good with JavaScript standard style.
ESLint is a tool for identifying and reporting on patterns found in ECMAScript/JavaScript code. In many ways, it is similar to JSLint and JSHint with a few exceptions. Firstly, ESLint uses Esprima for JavaScript parsing. Secondly, ESLint uses an AST to evaluate patterns in code. And finally, ESLint is completely pluggable: every single rule is a plugin, and you can add more at runtime.
JSHint is a community-driven tool to detect errors and potential problems in JavaScript code. It is very flexible so you can easily adjust it to your particular coding guidelines and the environment you expect your code to execute in.
CoffeeLint is a style checker that helps keep CoffeeScript code clean and consistent. CoffeeScript does a great job at insulating programmers from many of JavaScript's bad parts, but it won't help enforce a consistent style across a code base. CoffeeLint can help.
CSS, SCSS, & HTML
CSSLint helps you find problems with your CSS code. It does basic syntax checking as well as applying a set of rules to the code that look for problematic patterns or signs of inefficiency. The rules are all pluggable, so you can easily write your own or omit ones you don't want.
Python
Java
Checkstyle is a development tool to help programmers write Java code that adheres to a coding standard. By default it supports the Google Java Style Guide and Sun Code Conventions, but is highly configurable. It can be invoked with an ANT task and a command line program.
Ruby
RuboCop is a Ruby static code analyzer. Out of the box, it will enforce many of the guidelines outlined in the community Ruby Style Guide.
C and C++
Go
Haskell
HLint is a tool for suggesting possible improvements to Haskell code. These suggestions include ideas such as using alternative functions, simplifying code and spotting redundancies.
Multi-Language Linters
Other Useful Linters
ShellCheck, a static analysis tool for shell scripts, automatically detects problems with sh/bash scripts and commands.