Currently, formatter plugins cannot receive custom options. This limitation becomes problematic in scenarios where plugins need configuration to determine their scope or behavior.
Real-world ExampleThe Phoenix LiveView formatter plugin formats all ~H sigils in the codebase. However, ~H sigils are general-purpose and can be used by any library (e.g., Hologram uses them for its own purposes). This leads to issues:
Allow specifying custom options for formatter plugins in .formatter.exs:
Current syntax:
[Proposed syntax:
[--
You received this message because you are subscribed to the Google Groups "elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-co...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/elixir-lang-core/504b9140-c09a-4937-a330-4587e5965efcn%40googlegroups.com.