Files
codeql/python/ql/test/query-tests/ForbiddenDependency/private/specification.arcspec
2018-11-19 15:15:54 +00:00

16 lines
640 B
XML

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<architecture>
<patternMode>regex</patternMode>
<group name="G1" groupRule="unrestricted">
<!-- G2 to G3 dependency should not be allowed, because G2 is not a sibling of G5 -->
<unit name="G2" filePattern="${source_location}.*/a.py" />
<group name="G5" groupRule="unrestricted">
<group name="G5" groupRule="private">
<unit name="G3" filePattern="${source_location}.*/b.py" />
</group>
<!-- G4 to G3 dependency should be allowed, because G4 and G5 are siblings -->
<unit name="G4" filePattern="${source_location}.*/c.py" />
</group>
</group>
</architecture>