lib/lex.js
Function lex
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function lex(contents) {
var syntax = esprima.parse(contents, {
tokens: true,
loc: true,
range: true,
Function addWhitespace
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addWhitespace(from, to) {
var ws;
var comments = syntax.comments.filter(function (comment) {
return comment.range[0] >= from && comment.range[1] <= to;