mirror of
https://github.com/github/codeql.git
synced 2026-04-22 07:15:15 +02:00
Apply suggestions from code review
Co-authored-by: Chris Smowton <smowton@github.com>
This commit is contained in:
committed by
Owen Mansel-Chan
parent
821f399193
commit
ac6c4add14
@@ -13,7 +13,7 @@ class VariableWithSensitiveName extends Variable {
|
||||
exists(string name | name = this.getName() |
|
||||
name.regexpMatch(getCommonSensitiveInfoRegex()) and
|
||||
not name.regexpMatch("(?i).*null.*") and
|
||||
not name.matches("tokenImage") // appears in parser code generated by JavaCC
|
||||
name != "tokenImage" // appears in parser code generated by JavaCC
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
---
|
||||
category: minorAnalysis
|
||||
---
|
||||
* Variables named `tokenImage` are no longer sources for the `java/sensitive-log` query. This is because this variable name is used in parsing code generated by JavaCC, so it causes a larger number of false positive alerts.
|
||||
* Variables named `tokenImage` are no longer sources for the `java/sensitive-log` query. This is because this variable name is used in parsing code generated by JavaCC, so it causes a large number of false positive alerts.
|
||||
|
||||
Reference in New Issue
Block a user