I'm working on a project that uses a specific styleguide for javascript. For instance, an if/else statement would look like this:
if( condition ){
// Bla bla
}
else {
// Another bla bla
}
What I'm looking for is a tool that would allow me to check the syntax of a file according to a specific styleguide. JSHint/JSLint don't focus on style, Closure Linter is not customizable, and Uncrustify reformats the file without warning (and doesn't officially support Javascript).
The best output I could get with this program would be the one from Closure Linter but with custom rules. Answers to this similar question were all wrong.
Does such a tool exist?