简体   繁体   English

Elixir 的 `mix format` 配置选项

[英]Elixir's `mix format` configuration options

I'm trying to find a list a configurable options for mix format to put in the formatter config file, but I can't for the life of me find it.我正在尝试找到一个列表,将混合格式的可配置选项放入格式化程序配置文件中,但我终生找不到它。 It's not in the mix format docs or anywhere else I've looked.它不是混合格式的文档或我看过的其他任何地方。 Anyone know where I can find this information?有谁知道我在哪里可以找到这些信息?

It turns out that mix format does not have a lot of options to set, and what you see on the mix docs page is exactly what you get.事实证明, mix format没有很多选项可供设置,而您在mix docs 页面上看到的正是您得到的。 It seems there are not a breadth of settings to make it more opinionated.似乎没有广泛的设置可以使其更加自以为是。

You should read the docs: Formatting Options您应该阅读文档: 格式选项

There are plenty of guides to get you started online as well, for example: Everything you need to know about Elixir's new formatter也有很多指南可以帮助您在线入门,例如: 您需要了解的有关 Elixir 新格式化程序的所有信息

当您需要一堆选项来微调项目的格式时,请尝试其中一个工具https://github.com/h4cc/awesome-elixir#code-analysis ,我们目前正在使用credo

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM