Allow for script to exit with code 0 even if circular dependencies are found#303
Allow for script to exit with code 0 even if circular dependencies are found#303louisscruz wants to merge 3 commits intopahen:masterfrom
Conversation
|
@pahen would you consider adding this? Or, perhaps some variation of this? |
|
Hi, @louisscruz , thanks for this handy idea. I'm here to help with the PR. |
|
Due to the inactivity, I'm going to do the edit myself and add some output test. |
There was a problem hiding this comment.
Pull Request Overview
Adds a new --allow-circular flag to madge that allows the script to exit with code 0 even when circular dependencies are found, providing users the ability to list circular dependencies without triggering a failure exit code.
- Introduces
--allow-circularflag for non-failing circular dependency detection - Updates documentation to clarify exit behavior with and without the flag
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
In some cases, one might aim to use
madgeto get a list of circular dependencies without necessarily exiting1in the case that some are found. This PR adds an--allow-circularflag that will allow for that.