Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
file mixes tab and space indentation (19 tab-indented and 16 space-indented lines) (raw pass, confidence 0.40)
-
file mixes tab and space indentation (51 tab-indented and 18 space-indented lines) (raw pass, confidence 0.40)
-
file mixes tab and space indentation (91 tab-indented and 16 space-indented lines) (raw pass, confidence 0.40)
-
file mixes tab and space indentation (55 tab-indented and 16 space-indented lines) (raw pass, confidence 0.40)
-
file mixes tab and space indentation (623 tab-indented and 16 space-indented lines) (raw pass, confidence 0.40)
-
file mixes tab and space indentation (183 tab-indented and 16 space-indented lines) (raw pass, confidence 0.40)
-
file mixes tab and space indentation (502 tab-indented and 16 space-indented lines) (raw pass, confidence 0.40)
-
file mixes tab and space indentation (15 tab-indented and 16 space-indented lines) (raw pass, confidence 0.40)
-
file mixes tab and space indentation (419 tab-indented and 9 space-indented lines) (raw pass, confidence 0.40)
describe("ScopeManager#addGlobals", () => {
it("adds variables to the global scope and resolves references from the global scope", () => {
const ast = espree(`
foo = bar + bar;
-
file mixes tab and space indentation (16 tab-indented and 4 space-indented lines) (raw pass, confidence 0.40)
describe("arguments", () => {
it("arguments are correctly materialized", () => {
const ast = espree(`
(function () {
-
file mixes tab and space indentation (112 tab-indented and 13 space-indented lines) (raw pass, confidence 0.40)
describe("catch", () => {
it("creates scope", () => {
const ast = espree(`
(function () {
-
file mixes tab and space indentation (44 tab-indented and 6 space-indented lines) (raw pass, confidence 0.40)
describe("childVisitorKeys option", () => {
it("should handle as a known node if the childVisitorKeys option was given.", () => {
const ast = espree(`
var foo = 0;
-
file mixes tab and space indentation (78 tab-indented and 13 space-indented lines) (raw pass, confidence 0.40)
describe("ES6 arrow function expression", () => {
it("materialize scope for arrow function expression", () => {
const ast = espree(`
var arrow = () => {
-
file mixes tab and space indentation (103 tab-indented and 34 space-indented lines) (raw pass, confidence 0.40)
describe("ES6 block scope", () => {
it("let is materialized in ES6 block scope#1", () => {
getSupportedEcmaVersions({ min: 6 }).forEach(ecmaVersion => {
const ast = espree(`
-
file mixes tab and space indentation (40 tab-indented and 9 space-indented lines) (raw pass, confidence 0.40)
describe("ES6 catch", () => {
it("takes binding pattern", () => {
const ast = espree(`
try {
-
file mixes tab and space indentation (254 tab-indented and 46 space-indented lines) (raw pass, confidence 0.40)
describe("ES6 class", () => {
it("declaration name creates class scope", () => {
const ast = espree(`
class Derived extends Base {
-
file mixes tab and space indentation (211 tab-indented and 63 space-indented lines) (raw pass, confidence 0.40)
describe("ES6 default parameters:", () => {
describe("a default parameter creates a writable reference for its initialization:", () => {
const patterns = {
FunctionDeclaration: "function foo(a, b = 0) {}",
-
file mixes tab and space indentation (950 tab-indented and 143 space-indented lines) (raw pass, confidence 0.40)
describe("ES6 destructuring assignments", () => {
it("Pattern in var in ForInStatement", () => {
const ast = espree(`
(function () {
-
file mixes tab and space indentation (175 tab-indented and 22 space-indented lines) (raw pass, confidence 0.40)
describe("ES6 iteration scope", () => {
it("let materialize iteration scope for ForInStatement#1", () => {
getSupportedEcmaVersions({ min: 6 }).forEach(ecmaVersion => {
const ast = espree(`
-
file mixes tab and space indentation (12 tab-indented and 6 space-indented lines) (raw pass, confidence 0.40)
describe("ES6 new.target", () => {
it("should not make references of new.target", () => {
const ast = espree(`
class A {
-
file mixes tab and space indentation (36 tab-indented and 14 space-indented lines) (raw pass, confidence 0.40)
describe("ES6 object", () => {
it("method definition", () => {
const ast = espree(`
({
-
file mixes tab and space indentation (17 tab-indented and 4 space-indented lines) (raw pass, confidence 0.40)
describe("ES6 rest arguments", () => {
it("materialize rest argument in scope", () => {
const ast = espree(`
function foo(...bar) {
-
file mixes tab and space indentation (26 tab-indented and 9 space-indented lines) (raw pass, confidence 0.40)
describe("ES6 super", () => {
it("is not handled as reference", () => {
const ast = espree(`
class Foo extends Bar {
-
file mixes tab and space indentation (27 tab-indented and 10 space-indented lines) (raw pass, confidence 0.40)
describe("ES6 switch", () => {
it("materialize scope", () => {
getSupportedEcmaVersions({ min: 6 }).forEach(ecmaVersion => {
const ast = espree(`
-
file mixes tab and space indentation (27 tab-indented and 7 space-indented lines) (raw pass, confidence 0.40)
describe("ES6 template literal", () => {
it("refer variables", () => {
const ast = espree(`
(function () {
-
file mixes tab and space indentation (18 tab-indented and 6 space-indented lines) (raw pass, confidence 0.40)
describe("fallback option", () => {
it("should raise an error when it encountered an unknown node if no fallback.", () => {
const ast = espree(`
var foo = 0;
-
file mixes tab and space indentation (26 tab-indented and 3 space-indented lines) (raw pass, confidence 0.40)
describe("function name", () => {
it("should create its special scope", () => {
const ast = espree(`
(function name() {
-
file mixes tab and space indentation (110 tab-indented and 61 space-indented lines) (raw pass, confidence 0.40)
describe("ScopeManager.prototype.getDeclaredVariables", () => {
-
file mixes tab and space indentation (118 tab-indented and 32 space-indented lines) (raw pass, confidence 0.40)
describe("implicit global reference", () => {
it("assignments global scope", () => {
const ast = espree(`
var x = 20;
-
file mixes tab and space indentation (79 tab-indented and 10 space-indented lines) (raw pass, confidence 0.40)
describe("impliedStrict option", () => {
it("ensures all user scopes are strict if ecmaVersion >= 5", () => {
const ast = espree(`
function foo() {
-
file mixes tab and space indentation (345 tab-indented and 90 space-indented lines) (raw pass, confidence 0.40)
describe("References:", () => {
describe("JSX References:", () => {
it("should treat JSX identifiers as references", () => {
const ast = espree(
-
file mixes tab and space indentation (29 tab-indented and 6 space-indented lines) (raw pass, confidence 0.40)
describe("label", () => {
it("should not create variables", () => {
const ast = espree("function bar() { q: for(;;) { break q; } }");
-
file mixes tab and space indentation (69 tab-indented and 6 space-indented lines) (raw pass, confidence 0.40)
describe("nodejsScope option", () => {
it("creates a function scope following the global scope immediately when nodejscope: true", () => {
const ast = espree(`
"use strict";
-
file mixes tab and space indentation (17 tab-indented and 16 space-indented lines) (raw pass, confidence 0.40)
describe("optimistic", () => {
it("direct call to eval", () => {
const ast = espree(`
function outer() {
-
file mixes tab and space indentation (412 tab-indented and 57 space-indented lines) (raw pass, confidence 0.40)
describe("References:", () => {
describe("When there is a `let` declaration on global,", () => {
it("the reference on global should be resolved.", () => {
const ast = espree("let a = 0;");
-
file mixes tab and space indentation (188 tab-indented and 2 space-indented lines) (raw pass, confidence 0.40)
function example() {
let x = 1;
console.log(x);
}
-
file mixes tab and space indentation (23 tab-indented and 6 space-indented lines) (raw pass, confidence 0.40)
describe("typescript", () => {
describe("multiple call signatures", () => {
it("should create a function scope", () => {
const ast = parse(
-
file mixes tab and space indentation (218 tab-indented and 82 space-indented lines) (raw pass, confidence 0.40)
function assertIsStrictRecursively(scope, expected) {
assert.strictEqual(scope.isStrict, expected);
scope.childScopes.forEach(childScope => {
-
file mixes tab and space indentation (41 tab-indented and 12 space-indented lines) (raw pass, confidence 0.40)
describe("`using` and `await using` block scope", () => {
it("`using` in block scope", () => {
const ast = espree.parse(
`
-
file mixes tab and space indentation (8 tab-indented and 16 space-indented lines) (raw pass, confidence 0.40)
-
file mixes tab and space indentation (25 tab-indented and 6 space-indented lines) (raw pass, confidence 0.40)
describe("with", () => {
it("creates scope", () => {
const ast = espree(
`
Run disclude locally to verify. Add --format sarif for SARIF output. Add --llm (with an API key in the environment) to include the LLM review.