Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c4abffe

Browse files
committed
Python: Ignore any captured info with tests in it
1 parent de41f19 commit c4abffe

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • python/ql/src/meta/ClassHierarchy

python/ql/src/meta/ClassHierarchy/Find.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,5 +513,6 @@ where
513513
newModel(subclass, newModelFullyQualified, _, mod, _)
514514
) and
515515
fullyQualifiedToYamlFormat(newModelFullyQualified, type2, path) and
516-
not Extensions::typeModel(spec, type2, path)
516+
not Extensions::typeModel(spec, type2, path) and
517+
not newModelFullyQualified.regexpMatch("(?i).*tests?_?.*")
517518
select spec.(string), type2, path

0 commit comments

Comments
 (0)