Add Mix formatter configuration

This commit is contained in:
Marcel Otto 2019-09-23 20:20:19 +02:00
parent d5c9d4b152
commit 98cb5350d0
2 changed files with 12 additions and 1 deletions

11
.formatter.exs Normal file
View file

@ -0,0 +1,11 @@
locals_without_parens = [
defvocab: 2
]
[
inputs: ["{mix,.formatter}.exs", "{bench,config,lib,test}/**/*.{ex,exs}"],
locals_without_parens: locals_without_parens,
export: [
locals_without_parens: locals_without_parens
]
]

View file

@ -54,7 +54,7 @@ defmodule RDF.Mixfile do
"GitHub" => @repo_url,
"Changelog" => @repo_url <> "/blob/master/CHANGELOG.md",
},
files: ~w[lib src/*.xrl src/*.yrl priv mix.exs VERSION *.md]
files: ~w[lib src/*.xrl src/*.yrl priv mix.exs .formatter.exs VERSION *.md]
]
end