We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 785e027 commit 43bcb47Copy full SHA for 43bcb47
1 file changed
java/ql/lib/semmle/code/java/Overlay.qll
@@ -81,3 +81,21 @@ private predicate discardReferableLocatable(@locatable el) {
81
not drl.existsInOverlay()
82
)
83
}
84
+
85
+overlay[local]
86
+private predicate baseConfigLocatable(@configLocatable l) { not isOverlay() }
87
88
89
+private predicate overlayHasConfigLocatables() {
90
+ isOverlay() and
91
+ exists(@configLocatable el)
92
+}
93
94
+overlay[discard_entity]
95
+private predicate discardBaseConfigLocatable(@configLocatable el) {
96
+ // The properties extractor is currently not incremental, so if
97
+ // the overlay contains any config locatables, the overlay should
98
+ // contain a full extraction and all config locatables from base
99
+ // should be discarded.
100
+ baseConfigLocatable(el) and overlayHasConfigLocatables()
101
0 commit comments