es-analysis/plato — pull request #68 by borisdiakur (2014-02-25 22:38:30+00:00)
Title: FIX: fixed issue #66 Unexpected token ILLEGAL with shebang #!

plato does not recognize a node.js shebang at the beginning of a JavaScript file, instead it throws the error "Unexpected token ILLEGAL" and skips the affected file.

Fixed the issue by commenting out the shebang line as followed:

// if begins with shebang
if (source[0] === '#' && source[1] === '!') {
source = '//' + source;
}

This solution is taken from complexity-report version 1.0.2