restricts alerts to the first line

This commit is contained in:
Erik Krogh Kristensen
2020-02-20 10:43:41 +01:00
parent d4e73df92f
commit a5fdcb67f9

View File

@@ -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)