What kind of change does this PR introduce? (check at least one)
[ ] Bugfix
[x] Feature
[ ] Code style update
[ ] Refactor
[ ] Build-related changes
[ ] Other, please describe:
The PR fulfills these requirements:
[X] All tests are passing?
[X] New/updated tests are included?
[ ] If any static assets have been updated, has ui/bindata.go been regenerated?
[ ] Are there doc blocks for functions that I updated/created?
If adding a new feature, the PR's description includes:
[X] A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)
Description:
This PR adds a new driver archive, which allows to index source code in archives (e.g. zip, tar; any that supported by https://github.com/mholt/archiver) without extracting files: while indexing, files are walked using archive API, and while searching, results are checked and snippets generated with files extracted on the fly.
What kind of change does this PR introduce? (check at least one)
The PR fulfills these requirements:
If adding a new feature, the PR's description includes:
Description:
This PR adds a new driver
archive
, which allows to index source code in archives (e.g. zip, tar; any that supported by https://github.com/mholt/archiver) without extracting files: while indexing, files are walked using archive API, and while searching, results are checked and snippets generated with files extracted on the fly.A config example:
Some metrics: