You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
isInTestFile(method.getLocation().getFile()) and result = "test"
168
+
or
169
+
method.getFile() instanceof GeneratedFile and result = "generated"
170
+
or
171
+
not isInTestFile(method.getLocation().getFile()) and
172
+
not method.getFile() instanceof GeneratedFile and
173
+
result = "source"
174
+
}
175
+
150
176
// The below is a copy of https://github.com/github/codeql/blob/249f9f863db1e94e3c46ca85b49fb0ec32f8ca92/java/ql/lib/semmle/code/java/dataflow/internal/ModelExclusions.qll
151
177
// to avoid the use of internal modules.
152
178
/** Holds if the given package \`p\` is a test package. */
0 commit comments