Dean,
I can’t reproduce this using the code snippet above in an empty JavaScript file named test.js, here is my content:
function something()
{
if (this.text.length > 0)
this.text += ' '; // The line is not empty, so we need to put out a space.
}
Can you give me a full file snippet that exhibits the behavior you are seeing? Also try right clicking on your project, go to MyEclipse > Remove all validation markers, then rebuild it. Does the marker come back?