Skip to content

Checks if module.xml has declared all dependencies based on deptrack scan.

Notifications You must be signed in to change notification settings

memegento/magetrac

Repository files navigation

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

About

Checks if module.xml has declared all dependencies based on deptrack scan.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages