Credo.Sources.find

You're seeing just the function find, go back to Credo.Sources module for more information.

Finds sources for a given Credo.Execution.

Through the files key, configs may contain a list of included and excluded patterns. For included, patterns can be file paths, directory paths and globs. For excluded, patterns can also be specified as regular expressions.

iex> Sources.find(%Credo.Execution{files: %{excluded: ["not_me.ex"], included: ["*.ex"]}})

iex> Sources.find(%Credo.Execution{files: %{excluded: [~r/messy/], included: ["lib/mix", "root.ex"]}})