This repository has been archived by the owner on Jun 1, 2023. It is now read-only.
Search implementations in files with implicit requires #78
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
NOTE: This feature doesn't affect scry performance, just increase the scope available to search methods and dependencies without requiring files explicitly (common practice in crystal projects)
Fixes #29
The rules are:
src
directory (common on crystal projects) then you should have a main file that requires all others usingrequire "./**/*"
or similarsrc
folder then all the workspace is analyzed in aims to search symbols and methods, excludingspec
andlib
directories from primary scope (methods insidelib
dir can be found if a primary scope file requires it)The current spec already cover part of this feature, a full spec for this is a bit complicated because it requires a full workspace to test implicit requires
This PR also include a replacement and enhancement to the fix implemented on #63