mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
restricts alerts to the first line
This commit is contained in:
@@ -13,9 +13,8 @@
|
||||
|
||||
import javascript
|
||||
import semmle.javascript.security.UselessUseOfCat
|
||||
import semmle.javascript.RestrictedLocations
|
||||
|
||||
|
||||
from UselessCat cat
|
||||
select cat, "Useless use of `cat`. Can be replaced with: " + createReadFileCall(cat)
|
||||
|
||||
|
||||
select cat.asExpr().(FirstLineOf), "Useless use of `cat`. Can be replaced with: " + createReadFileCall(cat)
|
||||
Reference in New Issue
Block a user