mirror of
https://github.com/github/codeql.git
synced 2026-04-01 05:08:15 +02:00
19 lines
426 B
Plaintext
19 lines
426 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 quality
|
|
* maintainability
|
|
* complexity
|
|
* language-features
|
|
* @precision very-high
|
|
*/
|
|
|
|
import javascript
|
|
import semmle.javascript.RestrictedLocations
|
|
|
|
from WithStmt ws
|
|
select ws.(FirstLineOf), "Do not use 'with'."
|