Code style and formatting tools
Thu May 14 09:19:54 CEST 2020
These days there are two rebar3 plugins for that:
- https://hex.pm/packages/rebar3_lint - For linting, it uses Elvis under
- 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!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions