Skip to content

Customizable detect func for finder, fix SearchSingleTree

Fabien Catteau requested to merge 263441-custom-detect-func into master

What does this MR do?

  • Add customizable Detect function to finder
  • Remove Parser field from finder.File; this wasn't used since !136 (merged)
  • Add unit tests to finder, to emulate the search needed for gemnasium-maven and gemnasium-python
  • Fix search mode SearchSingleTree, to be used by gemnasium-maven

2 possible next steps:

  • use this new generic finder in gemnasium-maven and gemnasium-python, along with custom detect functions
  • or work on !134 (merged) to detect projects instead of files

What are the relevant issue numbers?

gitlab-org/gitlab#263441 (closed)

Does this MR meet the acceptance criteria?

Edited by Fabien Catteau

Merge request reports