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.
docs/
1 parent 004bb50 commit dc90411Copy full SHA for dc90411
python/ql/lib/semmle/python/frameworks/internal/SubclassFinder.qll
@@ -115,7 +115,7 @@ module NotExposed {
115
predicate isAllowedModule(Module mod) {
116
// don't include anything found in site-packages
117
exists(mod.getFile().getRelativePath()) and
118
- not mod.getFile().getRelativePath().regexpMatch("(?i)(^|/)examples?/.*") and
+ not mod.getFile().getRelativePath().regexpMatch("(?i)((^|/)examples?|^docs)/.*") and
119
// to counter things like `my-example/app/foo.py` being allowed under `app.foo`
120
forall(string part | part = mod.getFile().getParent().getRelativePath().splitAt("/") |
121
legalShortName(part)
0 commit comments