View Source mix credo_diff (BlitzCredoChecks v0.1.5)
Checks all files that have been changed from trunk. Great for gradually introducing conventions through enforcement on new code only.
Run this task with mix credo_diff
Flags
--trunk
the branch that the current one will be compared against for files. Defaults tomain
.--name
The configuration in .credo.exs to use, defaults todefault
.
Link to this section Summary
Functions
It's clunky but each file name has to be appended one at a time
There will be other files but we only want to check Elixir
Print any errors we see and error if there is a non-zero exit code
If we don't get files then there is nothing to check
Link to this section Functions
It's clunky but each file name has to be appended one at a time
There will be other files but we only want to check Elixir
@spec parse_credo_output({String.t(), non_neg_integer()}, keyword()) :: :ok | {:error, String.t()}
Print any errors we see and error if there is a non-zero exit code
If we don't get files then there is nothing to check