You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a use case where I'm running madge in CI to check for circular dependencies. I just noticed that if you generate the dependency graph when checking for circular dependencies, madge returns exit code 0 even if there are circular dependencies. Probably because generating the image graph returns exit code 0 when the graph is generated successfully, and 1 if generating the image fails?
Could we add a flag or something to the CLI to make madge optionally exit with non-zero exit code even when generating the graph, if circular dependencies are found?
The text was updated successfully, but these errors were encountered:
I have a use case where I'm running madge in CI to check for circular dependencies. I just noticed that if you generate the dependency graph when checking for circular dependencies, madge returns exit code 0 even if there are circular dependencies. Probably because generating the image graph returns exit code 0 when the graph is generated successfully, and 1 if generating the image fails?
Could we add a flag or something to the CLI to make madge optionally exit with non-zero exit code even when generating the graph, if circular dependencies are found?
I'm also happy to contribute and see if I'm able to implement the flag, if this sounds reasonable 🙂
I have a use case where I'm running madge in CI to check for circular dependencies. I just noticed that if you generate the dependency graph when checking for circular dependencies, madge returns exit code 0 even if there are circular dependencies. Probably because generating the image graph returns exit code 0 when the graph is generated successfully, and 1 if generating the image fails?
Could we add a flag or something to the CLI to make madge optionally exit with non-zero exit code even when generating the graph, if circular dependencies are found?
The text was updated successfully, but these errors were encountered: