3 ms·
If anyone from GitHub is listening, being able to exclude test code with a few clicks would be an absolute game-changer. By far the biggest source of noise in m
by mintplant 5y ago
If anyone from GitHub is listening, being able to exclude test code with a few clicks would be an absolute game-changer. By far the biggest source of noise in my GH code search results, and I use the tool (and similar tools like Searchfox) super super heavily. Either way, stoked to try this out.
- Koffiepoeder 5y agoAnd inversely, searching specifically for test code can also be useful. For example if searching for an implementation example.
- 100k 5y agoThanks for the feedback! We downrank test files with a heuristic, though we'll definitely be looking to make this more sophisticated. You can also exclude results using a regular expression, like `foo NOT path:/_test\.go$/`.
- dcreager 5y agoAnd also note that if you often need to add this kind of qualifier to many searches, you can create a "custom scope" that includes it for you transparently.
- halayli 5y agoExactly this. It will also reduce unnecessary requests on their servers.