Module

mix format

Changes by version

Elixir 1.19.0

· 2 changes

Enhancement Tool: Mix

Add options to mix format to allow excluding of files

Bugfix Tool: Mix

Ensure the formatter does not go over the specified limit in certain corner cases

Elixir 1.18.0

· 2 changes

Enhancement Tool: Mix

Add mix format --migrate to migrate from deprecated functionality

Enhancement Tool: Mix

Add new options and metadata to improve formatting applying by editors and other environments

Elixir 1.15.7

· 1 change

Bugfix Tool: Mix

Correctly match file to subdirectory in Mix.Tasks.Format.formatter_for_file/2

Elixir 1.15.6

· 1 change

Bugfix Tool: Mix

Load plugins when invoking the formatter from an IDE

Elixir 1.15.5

· 1 change

Bugfix Tool: Mix

Load and compile plugins if specified in subdirectories

Elixir 1.15.0

· 4 changes

Enhancement Tool: Mix

Support --no-exit option

Enhancement Tool: Mix

Allow multiple formatters per file extension and sigil

Enhancement Tool: Mix

Show diffs whenever --check-formatted fails

Enhancement Tool: Mix

Allow the formatting root to be configured

Elixir 1.14.4

· 1 change

Enhancement Tool: Mix

Don't call formatter on directories

Elixir 1.14.1

· 1 change

Enhancement Tool: Mix

Do not cache inputs from .formatter.exs so they are properly re-evaluted on every call

Elixir 1.14.0

· 4 changes

Enhancement Tool: Mix

Support filename in mix format - when reading from stdin

Enhancement Tool: Mix

Compile if mix format plugins are missing

Bugfix Tool: Mix

Do not add new lines if the formatted file is empty

Bugfix Tool: Mix

Properly compile dependencies on mix format

Elixir 1.13.3

· 2 changes

Enhancement Tool: Mix

Supply file and line to formatter plugins

Enhancement Tool: Mix

Support embedded Elixir expressions inside formatter plugins

Elixir 1.13.2

· 1 change

Enhancement Tool: Mix

Allow plugins to also format .ex and .exs files

Elixir 1.13.0

· 3 changes

Enhancement Tool: Mix

Support :plugins in mix format that can hook into custom extensions and sigils

Enhancement Tool: Mix

Add Mix.Tasks.Format.formatter_for_file/2

Enhancement Tool: Mix

Mix.Tasks.Format.formatter_opts_for_file/2 is deprecated in favor of Mix.Tasks.Format.formatter_for_file/2

Elixir 1.9.1

· 1 change

Enhancement Tool: Mix

Print relative paths in --check-formatted output

Elixir 1.8.0

· 1 change

Enhancement Tool: Mix

Warn when the same file may be formatted by multiple .formatter.exs

Elixir 1.7.4

· 1 change

Bugfix Tool: Mix

Expand paths so mix format path\for\windows.ex works

Elixir 1.6.6

· 1 change

Bugfix Tool: Mix

Match files starting with dot

Elixir 1.6.2

· 2 changes

Enhancement Tool: Mix

Support the :subdirectories configuration that points to other directories with their own .formatter.exs file. This is useful in umbrella applications. mix new --umbrella has also been changed to use this new configuration by default

Enhancement Tool: Mix

Include the current environment for missing dependency errors

Elixir 1.6.0

· 1 change

Enhancement Tool: Mix

Add a mix format task that formats the given files (or the files specified in a .formatter.exs file)