Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce deptrac #17

Open
DavidLambauer opened this issue Dec 6, 2022 · 1 comment
Open

Introduce deptrac #17

DavidLambauer opened this issue Dec 6, 2022 · 1 comment

Comments

@DavidLambauer
Copy link
Contributor

Introduce deptrac to detect potential architecture flaws right up front.

https://github.com/qossmic/deptrac

An example rule could be disallowing access to other modules without using the proper interfaces.

@memegento-dev
Copy link

memegento-dev commented Apr 22, 2023

We prepared a simple script that generates layers config for each module based on its module.xml into deptrac.layers.yaml
Then by running ./deptrac missing dependencies can be found. Looks like all used modules must be explicitly defined in module.xml

The script and deptrac.layers.yaml.dist can be found in our example repo.

https://github.com/memegento/magetrac

UPD: probably replacing generating yaml with direct configuring deptrac via php config would be a better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants