Credo (Credo v1.6.0) View Source

Credo builds upon four building blocks:

  • Credo.CLI - everything related to the command line interface (CLI), which orchestrates the analysis
  • Credo.Execution - a struct which is handed down the pipeline during analysis
  • Credo.Check - the default Credo checks
  • Credo.Code - all analysis tools used by Credo during analysis

Link to this section Summary

Functions

Runs Credo with the given argv and returns its final Credo.Execution struct.

Link to this section Functions

Runs Credo with the given argv and returns its final Credo.Execution struct.

Example:

iex> exec = Credo.run(["--only", "Readability"])
iex> issues = Credo.Execution.get_issues(exec)
iex> Enum.count(issues) > 0
true
Link to this function

run(argv_or_exec, files_that_changed)

View Source