Skip to content

Commit 019266e

Browse files
committed
change name of Useless cat
1 parent 391b6a8 commit 019266e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

change-notes/1.24/analysis-javascript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
| Polynomial regular expression used on uncontrolled data (`js/polynomial-redos`) | security, external/cwe/cwe-730, external/cwe/cwe-400 | Highlights expensive regular expressions that may be used on malicious input. Results are shown on LGTM by default. |
4747
| Prototype pollution in utility function (`js/prototype-pollution-utility`) | security, external/cwe/cwe-400, external/cwe/cwe-471 | Highlights recursive copying operations that are susceptible to prototype pollution. Results are shown on LGTM by default. |
4848
| Unsafe jQuery plugin (`js/unsafe-jquery-plugin`) | Highlights potential XSS vulnerabilities in unsafely designed jQuery plugins. Results are shown on LGTM by default. |
49-
| Useless use of cat (`js/useless-use-of-cat`) | correctness, security, maintainability | Highlights command executions of `cat` where the fs API should be used instead. Results are shown on LGTM by default. |
49+
| Unnecessary use of `cat` process (`js/unnecessary-use-of-cat`) | correctness, security, maintainability | Highlights command executions of `cat` where the fs API should be used instead. Results are shown on LGTM by default. |
5050

5151

5252
## Changes to existing queries

javascript/ql/src/Security/CWE-078/UselessUseOfCat.ql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/**
2-
* @name Useless use of cat
2+
* @name Unnecessary use of `cat` process
33
* @description Using the `cat` process to read a file is unnecessarily complex, inefficient, unportable, and can lead to subtle bugs, or even security vulnerabilities.
44
* @kind problem
55
* @problem.severity error
66
* @precision high
7-
* @id js/useless-use-of-cat
7+
* @id js/unnecessary-use-of-cat
88
* @tags correctness
99
* security
1010
* maintainability
@@ -22,4 +22,4 @@ where
2222
if cat.isSync()
2323
then message = " Can be replaced with a call to fs.readFileSync(..)."
2424
else message = " Can be replaced with a call to fs.readFile(..)."
25-
select cat.asExpr().(FirstLineOf), "Useless use of `cat`." + message
25+
select cat.asExpr().(FirstLineOf), "Unnecessary use of `cat` process." + message

0 commit comments

Comments
 (0)