Hey Louis,
Thanks for your reply. I already use a similar setup, I'm using the vim-elixir plugin which definitely provides good automatic formatting.
I guess my original post should have been a little bit more detailed, but I was actually thinking about a tool that does a little bit more than just indentation, but more importantly that would be editor agnostic.
I haven't looked very closely but it's very likely that vim-elixir and emacs-elixir don't behave similarly, and what about people using textmate, sublime, atom, or any other editor, each plugin is very likely to be slightly different, especially for edge cases, and there might be more than one plugin per editor.
What I have in mind is a program that takes any input (text, files, directory), and spits out the "official" elixir formatted version, then each editor specific plugin would use the exact formatting rules.
Furthermore, having such a tool could go a little bit further, again a la gofmt, which provides some simple refactoring, sorts the imports alphabetically, etc...
I'm still a beginner in the elixir world, so I don't yet what exact specific feature this theoretical tool could provide, that's why I was trying to get more experienced elixir developers opinion and see if they could see a potential value with something like that.
What about you? Do you see any value in this or do you think that a linter + vim-elixir (or any other plugin) is enough?
I hadn't heard about dogma before, I'll definitely take a look at it.
Cheers,
Pierre
PS: Looking at how go does it, they have multiple small tools, gofmt, as mentioned in my original post,
golint and
go vet, not exactly sure what are the exact differences between all of those.