mirror of
https://github.com/github/codeql.git
synced 2025-12-21 11:16:30 +01:00
Merge pull request #10096 from erik-krogh/acronyms-part1
make acronyms camelcase
This commit is contained in:
@@ -33,10 +33,10 @@ where
|
||||
or
|
||||
c instanceof Socket and type = "socket"
|
||||
) and
|
||||
not c instanceof SSLClass and
|
||||
not c instanceof SslClass and
|
||||
not exists(RefType t |
|
||||
exprTypeFlow(m.getQualifier(), t, _) and
|
||||
t instanceof SSLClass
|
||||
t instanceof SslClass
|
||||
) and
|
||||
(
|
||||
m.getMethod().getName() = "getInputStream" or
|
||||
|
||||
@@ -65,7 +65,7 @@ predicate query(MethodAccess m, Method def, int paramNo, string message, Element
|
||||
// an SSL factory, ...
|
||||
usesFactory(def, paramNo) and
|
||||
evidence = m.getArgument(paramNo) and
|
||||
not evidence.(Expr).getType() instanceof SSLClass and
|
||||
not evidence.(Expr).getType() instanceof SslClass and
|
||||
message = "has a non-SSL factory argument "
|
||||
or
|
||||
// ... or there is an overloaded method on the same type that does take a factory,
|
||||
|
||||
Reference in New Issue
Block a user