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

Add configuration option to hide todo edges on the graph #13

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Catsuko
Copy link

@Catsuko Catsuko commented Aug 17, 2024

I like the ability to draw the todo violations however in some cases I want to be able to see a clean dependency graph as well. This PR adds a configuration option to hide the todo edges. By default it will show them to keep existing behaviour the same.

Related pull requests:

Comment on lines +62 to +67
allow(DeprecatedReferencesLoader)
.to receive(:new)
.with(images_package, an_instance_of(Pathname))
.and_return(deprecated_references_loader_for_images)
allow(PackageTodoLoader).to receive(:new).and_call_original
expect(PackageTodoLoader)
allow(PackageTodoLoader)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed this from expect to allow since it was breaking my test case.

Personally I think the existing specs already check that the todos are drawn so there is no need to also check internal classes are being called in some particular way but let me know if you would prefer to keep these expectations.

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

Successfully merging this pull request may close these issues.

1 participant