mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Java/Kotlin: Allow dashes in callable names (the Kotlin standard library contains methods with dashes).
This commit is contained in:
@@ -555,7 +555,7 @@ module ModelValidation {
|
||||
not type.regexpMatch("[a-zA-Z0-9_\\$<>]+") and
|
||||
result = "Dubious type \"" + type + "\" in " + pred + " model."
|
||||
or
|
||||
not name.regexpMatch("[a-zA-Z0-9_]*") and
|
||||
not name.regexpMatch("[a-zA-Z0-9_\\-]*") and
|
||||
result = "Dubious name \"" + name + "\" in " + pred + " model."
|
||||
or
|
||||
not signature.regexpMatch("|\\([a-zA-Z0-9_\\.\\$<>,\\[\\]]*\\)") and
|
||||
|
||||
Reference in New Issue
Block a user