mirror of
https://github.com/github/codeql.git
synced 2026-03-23 07:56:54 +01:00
JavaScript: Make configuration IDs explicit in the API.
This commit is contained in:
@@ -5,11 +5,11 @@
|
||||
import javascript
|
||||
|
||||
/**
|
||||
* Holds if `config` matches `spec`, that is, either `spec` is the name of `config`
|
||||
* Holds if `config` matches `spec`, that is, either `spec` is the ID of `config`
|
||||
* or `spec` is the empty string and `config` is an arbitrary configuration.
|
||||
*/
|
||||
predicate configSpec(DataFlow::Configuration config, string spec) {
|
||||
config.toString() = spec
|
||||
config.getId() = spec
|
||||
or
|
||||
spec = ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user