-
Notifications
You must be signed in to change notification settings - Fork 135
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
Internal call implementation #904
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, again!
ohhh I like it. thank you sir! |
Great addition but is there a way to disable it? For legacy projects |
@BafS no, there is not. New 0.x version (BC breaking version) means new stricter rules and often requires some work on the side of the user to make it work. |
Okay that work, thanks for the feedback! |
@BafS But if you really need to, we can work together on extending the current functionality to make it conditional. |
@patrickkusebauch thank you! Looking at the PSR description we have
https://github.com/php-fig/fig-standards/blob/master/proposed/phpdoc-tags.md#56-internal So it's not purely about the boundaries I think, I feel that the option could make sense |
@BafS Here is how I would go about it. There is a way to write extensions to deptrac in you look at PR #867. In this particular case what makes sense to me is to create a You have the event with the reference to both sides of the dependency, so you can make targeted checks like:
Drop the dependency. I think this approach is better than doing a blank disable of the feature. WDYT? Would that work for you? I am happy to discuss in deptrac Slack channel: https://symfony-devs.slack.com/archives/C036EU1GZS9 |
That sounds good! I'll have a look there, thanks a lot for your feedback, really helpful |
I will also try making this configurable via the deptrac.yaml file over the weekend. Extensions are not yet actively supported, because I wasn't able to verify if they work with the phar from phive or deptrac-shim, which are still the recommended ways of installing Deptrac. Also, I might make a few changes to the API before making extensions public. That's why I don't want to "encourage" writing your own extensions yet. |
Making this configurable would be great. I have a separate deptrac file that checks that tests can reference src and not the other way around. I would have disabled |
Hi, just a follow-up/feedback here. Would it be possible when reporting "internal" violations to hint at the cause? eg "X must not depend on |
@dbrumann what do you think about reworking the This could replace |
Sounds good, but can you explain in more detail what you mean? In theory you can already disable them, by removing the I'm all on board for replacing the DependecyEmitters with Events. |
Fixes #538
Tests are implemented by making
make deptrac
passing. I am unable to write an e2e test from scratch.