ExQuality.Stages.Format (ExQuality v0.2.0)

View Source

Auto-fixes code formatting by running mix format.

This stage always succeeds (format can't fail on valid Elixir code). Reports how many files were modified.

This is the only stage that modifies code - all other stages are read-only.

Summary

Functions

Runs the format stage.

Functions

run(config)

@spec run(keyword()) :: ExQuality.Stage.result()

Runs the format stage.

First checks which files need formatting, then formats them. Returns a result with the list of formatted files.