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

Feature request: Configurable illegal dependencies #239

Open
Havunen opened this issue Feb 21, 2020 · 3 comments
Open

Feature request: Configurable illegal dependencies #239

Havunen opened this issue Feb 21, 2020 · 3 comments
Labels
duplicate viz visualization enhancement, graphviz

Comments

@Havunen
Copy link
Contributor

Havunen commented Feb 21, 2020

Hey,

We have been using Madge for checking circular dependencies and that is working well! Lately we discovered that we are going to split our code base based on different platforms and I was thinking would it be possible to disallow dependencies based on folder structure?

For example having following main folders all code written in Javascript I would like to make sure there are no dependencies going from iOS to other platform specific folders, but all of them can depend on shared. And shared cannot depend on any of the platforms.

iOs
LG
Android
Web
Shared

What do you think is this something madge could do?

@pahen
Copy link
Owner

pahen commented Feb 21, 2020

Hi,

Sounds like out of the scope for Madge. But it should be possible to build a tool upon Madge that solves your use-case.

@vikingair
Copy link
Collaborator

You can also achieve it via this Eslint Plugin.

@PabloLION
Copy link
Collaborator

This seems can be achieved by #309 and #202. Marking this as dup.

@PabloLION PabloLION added duplicate viz visualization enhancement, graphviz labels Jan 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate viz visualization enhancement, graphviz
Projects
None yet
Development

No branches or pull requests

4 participants