We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e74d0ac commit 777b845Copy full SHA for 777b845
go/ql/src/InconsistentCode/UnhandledCloseWritableHandle.ql
@@ -128,6 +128,14 @@ module UnhandledFileCloseConfig implements DataFlow::ConfigSig {
128
predicate isSource(DataFlow::Node source) { isWritableFileHandle(source, _) }
129
130
predicate isSink(DataFlow::Node sink) { isCloseSink(sink, _) }
131
+
132
+ predicate observeDiffInformedIncrementalMode() { any() }
133
134
+ Location getASelectedSourceLocation(DataFlow::Node source) {
135
+ exists(DataFlow::CallNode openCall | result = openCall.getLocation() |
136
+ isWritableFileHandle(source, openCall)
137
+ )
138
+ }
139
}
140
141
/**
0 commit comments