lib/lex.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function lex has 55 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function lex(contents) {
  var syntax = esprima.parse(contents, {
    tokens: true,
    loc: true,
    range: true,
Severity: Major
Found in lib/lex.js - About 2 hrs to fix

    Function addWhitespace has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function addWhitespace(from, to) {
        var ws;
    
        var comments = syntax.comments.filter(function (comment) {
          return comment.range[0] >= from && comment.range[1] <= to;
    Severity: Minor
    Found in lib/lex.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status