public class ThrowingPackageBoundaryChecker extends Object implements PackageBoundaryChecker
PackageBoundaryChecker
implementation that throws an exception if any file in a set does
not belong to the same package as provided build target only if cell configuration allows that,
otherwise noop.Constructor and Description |
---|
ThrowingPackageBoundaryChecker(com.google.common.cache.LoadingCache<Cell,BuildFileTree> buildFileTrees) |
Modifier and Type | Method and Description |
---|---|
void |
enforceBuckPackageBoundaries(Cell targetCell,
BuildTarget target,
com.google.common.collect.ImmutableSet<ForwardRelativePath> paths) |
public ThrowingPackageBoundaryChecker(com.google.common.cache.LoadingCache<Cell,BuildFileTree> buildFileTrees)
public void enforceBuckPackageBoundaries(Cell targetCell, BuildTarget target, com.google.common.collect.ImmutableSet<ForwardRelativePath> paths)
enforceBuckPackageBoundaries
in interface PackageBoundaryChecker