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 6db3b37 commit 6ce8cd3Copy full SHA for 6ce8cd3
python/ql/lib/semmle/python/frameworks/internal/SubclassFinder.qll
@@ -113,7 +113,8 @@ module NotExposed {
113
114
predicate isAllowedModule(Module mod) {
115
// don't include anything found in site-packages
116
- exists(mod.getFile().getRelativePath())
+ exists(mod.getFile().getRelativePath()) and
117
+ not mod.getFile().getRelativePath().regexpMatch("(?i)(^|/)examples?/.*")
118
}
119
120
predicate isTestCode(AstNode ast) {
0 commit comments