GitHoox.Hooks.Credo (GitHoox v0.5.0)

Copy Markdown View Source

Runs mix credo against staged Elixir files.

Options

  • :strict — pass --strict to credo. Default false.
  • :args — extra CLI args appended after the task name (and --strict when set). Default [].

Argument order: mix credo [--strict] <user_args...> -- <files...>. The -- stops credo parsing a --prefixed filename as an option.

Defaults

  • stage_fixed: false
  • files: ~w(lib/**/*.ex test/**/*.exs)