Post-Compile Checks

Learn how you can use post-compile checks to check if dependency rules are not violated.

As soon as we use the public modifier on a class, the compiler will let any other class use it, even if the direction of the dependency points in the wrong direction according to our architecture.

Since the compiler won’t help us out in these cases, we have to find other means to check that the Dependency Rule isn’t violated.

Implementing post-compile checks

One way ...