Files
codeql/javascript/ql/src/LanguageFeatures/WithStatement.ql
2019-01-07 10:15:45 +00:00

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'."