I am using the Eclipse (version Indigo) JavaScript code formatter and using the jshint-eclipse plugin with white: true option for code convention validation.
Eclipse code formatter and JSHint plugin conflict with the anonymous function declaration format. The JavaScript code formatter formats anonymous functions like the following:
var f1 = function() {
};
But the jshint-eclipse plugin gives a "Missing spaces after function" warning. The right format for this plugin is:
var f1 = function () {
};
NOTE THE SPACE AFTER THE function
Is there a way to format anonymus function declaration differently with eclipse than regular function declarations. I would like to add one space after "function" for anonymous functions but not for normal functions.
Thanks.
Update a relevang eclipse bug is here