Credo v1.4.0 Credo.Sources View Source

This module is used to find and read all source files for analysis.

Link to this section Summary

Functions

Finds sources for a given Credo.Execution.

Link to this section Functions

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"]}})