Plato on Github
Report Home
node_modules/jshint/src/state.js
Maintainability
58.13
Lines of code
31
Difficulty
9.00
Estimated Errors
0.19
Function weight
By Complexity
By SLOC
"use strict"; var NameStack = require("./name-stack.js"); var state = { syntax: {}, reset: function () { this.tokens = { prev: null, next: null, curr: null }; this.option = {}; this.ignored = {}; this.directive = {}; this.jsonMode = false; this.jsonWarnings = []; this.lines = []; this.tab = ""; this.cache = {}; // Node.JS doesn't have Map. Sniff. this.ignoredLines = {}; this.forinifcheckneeded = false; this.nameStack = new NameStack(); // Blank out non-multi-line-commented lines when ignoring linter errors this.ignoreLinterErrors = false; } }; exports.state = state;