Skip to content

VBC-504: semantic-shadowing ​

warning

Category: clean-code
Analysis: Semantic
Tags: clean-code semantic

What it reports ​

Variable '{name}' shadows a common library or system keyword. This can cause confusion during debugging.

Flagged ​

ts
const path = req.query.path;
ts
const fs = createFakeFs();

Not flagged ​

ts
const filePath = req.query.path;
ts
const fakeFs = createFakeFs();
ts
const res = await api.getNotes();
ts
const fs = require('fs');
ts
const path = require('path');
ts
const crypto = require('node:crypto');

Released under the MIT License.