(* old implementation, returning bad absolute fpaths instead of
 * "readable" fpaths
 *)
val get_targets :
  Find_targets.conf ->
  Scanning_root.t list ->
  Fpath.t list * Semgrep_output_v1_t.skipped_target list

(*
   [legacy implementation used in semgrep-core]

   Scan a list of folders or files recursively and return a list of files
   in the requested language. This takes care of ignoring undesirable
   files, which are returned in the semgrep-core response format.

   Reasons for skipping a file include currently:
   - the file looks like it's the wrong language.
   - a 'skip_list.txt' file was found at a conventional location (see
     skip_list.ml in pfff).
   - files over a certain size.
   See Skip_target.ml for more information.

   If keep_root_files is true (the default), regular files passed directly
   to this function are considered ok and bypass the other filters.

   By default files are sorted alphabetically. Setting
   'sort_by_decr_size' will sort them be decreasing size instead.

   This is a replacement for Lang.files_of_dirs_or_files.
*)
val files_of_dirs_or_files :
  ?keep_root_files:bool ->
  ?sort_by_decr_size:bool ->
  Lang.t option ->
  Fpath.t list ->
  Fpath.t list * Semgrep_output_v1_t.skipped_target list
