View Source mix style (Styler v0.8.0)

Formats and rewrites the given files and patterns.

mix style mix.exs "lib//*.{ex,exs}" "test//*.{ex,exs}"

If - is one of the files, input is read from stdin and written to stdout.

mix style uses the same options as mix format specified in .formatter.exs to format the code, and to determine which files to style if you don't pass any as arguments

task-specific-options

Task-specific options

  • --check-formatted - an alias for --check-styled, included for compatibility with mix format

  • --check-styled - checks that the file is already styled rather than styling it. useful for CI.