Add options to mix format to allow excluding of files
Ensure the formatter does not go over the specified limit in certain corner cases
Module
30 changes across 18 versions
Changes by version
Add options to mix format to allow excluding of files
Ensure the formatter does not go over the specified limit in certain corner cases
Add mix format --migrate to migrate from deprecated functionality
Add new options and metadata to improve formatting applying by editors and other environments
Correctly match file to subdirectory in Mix.Tasks.Format.formatter_for_file/2
Load plugins when invoking the formatter from an IDE
Load and compile plugins if specified in subdirectories
Support --no-exit option
Allow multiple formatters per file extension and sigil
Show diffs whenever --check-formatted fails
Allow the formatting root to be configured
Don't call formatter on directories
Do not cache inputs from .formatter.exs so they are properly re-evaluted on every call
Support filename in mix format - when reading from stdin
Compile if mix format plugins are missing
Do not add new lines if the formatted file is empty
Properly compile dependencies on mix format
Supply file and line to formatter plugins
Support embedded Elixir expressions inside formatter plugins
Allow plugins to also format .ex and .exs files
Support :plugins in mix format that can hook into custom extensions and sigils
Add Mix.Tasks.Format.formatter_for_file/2
Mix.Tasks.Format.formatter_opts_for_file/2 is deprecated in favor of Mix.Tasks.Format.formatter_for_file/2
Print relative paths in --check-formatted output
Warn when the same file may be formatted by multiple .formatter.exs
Expand paths so mix format path\for\windows.ex works
Match files starting with dot
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
Include the current environment for missing dependency errors
Add a mix format task that formats the given files (or the files specified in a .formatter.exs file)