Code style and formatting tools
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>
> 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>
>>> On formatting:
>>> (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
>>> > 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!
> Brujo Benavides
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions