Skip to content

Commit

Permalink
Allow "Output" as heuristic logger method name
Browse files Browse the repository at this point in the history
  • Loading branch information
owen-mc committed Sep 19, 2024
1 parent 9963db1 commit e0f6acc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/ql/lib/semmle/go/Concepts.qll
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ private class HeuristicLoggerCall extends LoggerCall::Range, DataFlow::CallNode
exists(string tp, string name, string x |
m.hasQualifiedName(_, tp, name) and
tp.regexpMatch(".*[lL]ogger") and
x = ["Debug", "Error", "Fatal", "Info", "Log", "Panic", "Print", "Trace", "Warn"] and
x = ["Debug", "Error", "Fatal", "Info", "Log", "Output", "Panic", "Print", "Trace", "Warn"] and
name.matches(x + "%")
|
m.getReceiverBaseType().getUnderlyingType() instanceof InterfaceType and
Expand Down

0 comments on commit e0f6acc

Please sign in to comment.