Yohan Blain

Results 5 issues of Yohan Blain

Currently the same Rule class is used for every rule type. As we move more logic to the domain it would be clearer to have a dedicated class by type.

Currently, most of the application logic is located in service-like classes (`CouplingDetector` and `RuleChecker`) while the domain is dumb. It would make sense to let the domain be responsible for...

We already have a Domain namespace. Could be interesting to also have Application (especially if we use a message bus at some point) and Infrastructure (Commands, Formatters, Parsers...)

Especially on domain objects (Rule, Node, etc.).

For example when [displaying violations of a discouraged rule](https://github.com/akeneo/php-coupling-detector/blob/master/src/Formatter/Console/PrettyFormatter.php#L81), the `` tag is not interpreted to style the output and is displayed as is. ![Screenshot from 2019-12-03 18:02:59](https://user-images.githubusercontent.com/659491/70072428-4364b400-15f7-11ea-826f-3aa87e7a85f4.png)