Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 823 Bytes

README.md

File metadata and controls

35 lines (26 loc) · 823 Bytes

Simple example of checking magento modules dependencies with Deptrac

How to use

  • Generate deptrac.layers.yaml with ./magetrac.php /mg/app/code
  • Run ./deptrac

Deptrac config

https://qossmic.github.io/deptrac/

imports:
  - deptrac.layers.yaml
deptrac:
  paths:
    - /{path-to-your-magento}/app/code/

Run for your app/code folder

./magetrac.php /mg/app/code && ./deptrack

Example result for entire magento 2 repo

https://github.com/magento/magento2

  • One can see that the module Magento_OfflinePayments does not contain the module Magento_Quote in its dependencies list despite using Magento\Quote classes

Generate graph

./deptrac analyze -f graphviz-dot -o check-result.dot
./deptrac analyze -f graphviz-image -o check-result.png