-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or requestquestionFurther information is requestedFurther information is requested
Description
So, a little bit of thought about how to make this tool more useful.
- Under-matching: Banish currently just matches against the
go.modfile, which means that, for example, a search for/foo/bar/bazwill fail to notice the dependency if thego.modfile containsrequire /foo/bar. I think this will have to be some kind of trie matching by breaking the URI into components. - Over-matching: If we fix the under-matching, we'll have a lot of matches on large imports - especially for monorepos - even if the actual Go imports never use the path we're matching against. The only solution for this, I think, is to search all the .go files in the repo and actually find out if the path is imported.
- Output: If we do point 1 and 2, we will have information about the files that contain relevant imports. We can list them right down to the line number.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestquestionFurther information is requestedFurther information is requested