integrate .formatter.exs files

main
Ryan Rix 2020-08-09 12:03:24 -07:00
parent 78fbe1c4ad
commit 1813072429
4 changed files with 21 additions and 9 deletions

View File

@ -1,5 +0,0 @@
[
import_deps: [:ecto, :phoenix],
inputs: ["*.{ex,exs}", "priv/*/seeds.exs", "{config,lib,test}/**/*.{ex,exs}"],
subdirectories: ["priv/*/migrations"]
]

1
.gitignore vendored
View File

@ -20,3 +20,4 @@ lipu_kasi-*.tar
/mix.exs
# /mix.lock is checked in.
.formatter.exs

View File

@ -39,6 +39,7 @@ Files which are provided from tangles will need to be managed here:
#+begin_src conf :noweb-ref tangled-files
/mix.exs
# /mix.lock is checked in.
.formatter.exs
#+end_src
This file should be checked in when it's changed, along with =mix.lock=
@ -125,3 +126,22 @@ In =:test= environment
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
#+end_src
* Formatters
There are two =.formatter.exs= files, one in the project root, and one stored with the migrations. I'm not sure if this will be used by the org-babel programming, but I'll provide them for now so that I can =git clean=
#+begin_src elixir :tangle .formatter.exs
[
import_deps: [:ecto, :phoenix],
inputs: ["*.{ex,exs}", "priv/*/seeds.exs", "{config,lib,test}/**/*.{ex,exs}"],
subdirectories: ["priv/*/migrations"]
]
#+end_src
#+begin_src elixir :tangle priv/repo/migrations/.formatter.exs
[
import_deps: [:ecto_sql],
inputs: ["*.exs"]
]
#+end_src

View File

@ -1,4 +0,0 @@
[
import_deps: [:ecto_sql],
inputs: ["*.exs"]
]