/* Check for trailing spaces
 */

module.exports = function (filename, body, config, callback) {
    // Check each line for trailing spaces

    var re = /\s$/,
        lines = body.split('\n'),
        errors = [];

    for (var i = 0; i < lines.length; i += 1) {
        if (re.test(lines[i])) {
            errors.push({
                filename: filename,
                line: i + 1,
                character: lines[i].length,
                message: "Trailing whitespace.",
                context: lines[i]
            });
        }
    }

    return callback(undefined, errors);
};

@@ -26,17 +26,16 @@
 ces%0A */%0A
-%0A
 module.e
@@ -93,52 +93,8 @@
 ) %7B%0A
-    // Check each line for trailing spaces%0A%0A
     

Clean up code a wee bit.