mirror of
https://github.com/github/codeql.git
synced 2026-04-27 09:45:15 +02:00
JS: Make CredentialsFunctionName use nameIndicatesSensitiveData
Someone from JS team needs to verify that this is actually OK.
This commit is contained in:
@@ -129,11 +129,7 @@ abstract class SensitiveDataFunctionName extends SensitiveFunctionName {
|
||||
class CredentialsFunctionName extends SensitiveDataFunctionName {
|
||||
SensitiveDataClassification classification;
|
||||
|
||||
CredentialsFunctionName() {
|
||||
// TODO: is it by purpose that we don't check whether `this` does not
|
||||
// match the regexps in `notSensitive`?
|
||||
this.regexpMatch(maybeSensitive(classification))
|
||||
}
|
||||
CredentialsFunctionName() { nameIndicatesSensitiveData(this, classification) }
|
||||
|
||||
override SensitiveDataClassification getClassification() { result = classification }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user