mirror of
https://github.com/github/codeql.git
synced 2025-12-24 12:46:34 +01:00
19 lines
449 B
Plaintext
19 lines
449 B
Plaintext
/**
|
|
* @name Conditional comments
|
|
* @description Conditional comments are an IE-specific feature and not portable.
|
|
* @kind problem
|
|
* @problem.severity warning
|
|
* @id js/conditional-comment
|
|
* @tags portability
|
|
* maintainability
|
|
* language-features
|
|
* external/cwe/cwe-758
|
|
* @precision very-high
|
|
*/
|
|
|
|
import javascript
|
|
|
|
from Comment c
|
|
where c.getText().trim().matches("@cc\\_on%")
|
|
select c, "Do not use conditional comments."
|