资 源 简 介
Spaghetti-killer is a maven plugin intended to get sure project architecture is not broken. In other word it prevents so called "spaghetti code"
Though there are a lot of products to control inter-layer dependencies, this plugin has following 2 advantages:
1) You may easily define architectural layers by yourself, using logical operations (and,or,not) and predefined "probes" like "if class implements interface", "if class name contains substring", "if class is annotated with", "if class extends with" etc.
2) It allows check if layer has hierarchical structure (if it is a tree, in other words) and even if 2 hierarchical layers are nested (which is useful for building widgets-controller based architecture)
Sample of configuration:
```