Code style and formatting tools

Daniil Churikov ddosia@REDACTED
Thu May 14 23:14:40 CEST 2020


Thanks, Fernando and Mark. I'd definitely try both. It's a bit of shame on
one hand that both of these tools came out of two powerful companies
(whatsapp and addroll) and still not consolidated into one robust tool. On
the other hand it's good to have a choice.

On Thu, 14 May 2020 at 08:20, Fernando Benavides <elbrujohalcon@REDACTED>
wrote:

> Hi Daniil,
>
> These days there are two rebar3 plugins for that:
>
>    - https://hex.pm/packages/rebar3_lint - For linting, it uses Elvis
>    under the hood.
>    - https://hex.pm/packages/rebar3_format - For code formatting
>
> There are alternatives for the formatter, but… being one of the
> maintainers of both Elvis and rebar3 format (about which I'll be giving a
> talk at CodeBEAM V)… I'll let others talk about them :)
>
> On Thu, May 14, 2020 at 12:57 AM Daniil Churikov <ddosia@REDACTED> wrote:
>
>> Thanks Roger. I quite like the approach with different profiles, so no
>> one has to compromise. Genius.
>>
>> On Wed, 13 May 2020, 22:20 Roger Lipscombe, <roger@REDACTED>
>> wrote:
>>
>>> On formatting:
>>> https://tech.nextroll.com/blog/dev/2020/02/25/erlang-rebar3-format.html
>>> (disclaimer: I've not yet tried it)
>>>
>>> On Wed, 13 May 2020 at 21:25, Daniil Churikov <ddosia@REDACTED> wrote:
>>> >
>>> > Hello list. It's been a while since I've researched this subject, but
>>> let me ask you a question: is there a tool chain to check erlang's code
>>> style and formatting? And general agreement on some settings for these
>>> tools.
>>> >
>>> > Last time I've checked the advice was to use elvis (there was no
>>> agreement on the general set of rules, every other person had exceptions).
>>> And for formatting advice was to use external emac's formatter. Does this
>>> still hold?
>>> >
>>> > Thanks!
>>>
>>
>
> --
>
> <https://about.me/elbrujohalcon?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb>
> Brujo Benavides
> about.me/elbrujohalcon
> <https://about.me/elbrujohalcon?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20200514/1a6ae731/attachment.htm>


More information about the erlang-questions mailing list