mirror of
https://github.com/github/codeql.git
synced 2026-01-05 10:40:21 +01:00
17 lines
389 B
Plaintext
17 lines
389 B
Plaintext
/**
|
|
* @name With statement
|
|
* @description The 'with' statement has subtle semantics and should not be used.
|
|
* @kind problem
|
|
* @problem.severity warning
|
|
* @id js/with-statement
|
|
* @tags maintainability
|
|
* language-features
|
|
* @precision very-high
|
|
*/
|
|
|
|
import javascript
|
|
import semmle.javascript.RestrictedLocations
|
|
|
|
from WithStmt ws
|
|
select ws.(FirstLineOf), "Do not use 'with'."
|