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 aa5eee1 commit b24e565Copy full SHA for b24e565
python/ql/lib/semmle/python/frameworks/internal/SubclassFinder.qll
@@ -112,12 +112,8 @@ module NotExposed {
112
}
113
114
predicate isAllowedModule(Module mod) {
115
- // for now, we only want to model things in site-packages (since we know these are
116
- // libraries used by real code)
117
- mod.getFile().getAbsolutePath().matches("%/site-packages/%")
118
- or
119
- // for CI testing
120
- mod.getFile().getRelativePath().matches("%/find_subclass_test.py")
+ // don't include anything found in site-packages
+ exists(mod.getFile().getRelativePath())
121
122
123
predicate isTestCode(AstNode ast) {
0 commit comments