Commit 0efd958
authored
Made .formatter.exs inputs relocatable (#846)
* Made .formatter.exs inputs relocatable
The .formatter.exs defined paths via a wildcard, but this would only
work if it was executed from the current directory. If it was run from
the topmost directory, none of the paths would be found, and the
inputs would only contain the `.exs` files in the current directory.
I also removed config from the glob, as this is in an umbrella
project, and umbrella apps have a centralized config which isn't in
this directory.
* Only append the formatter directory if the path is relative
* Need to make the ignores absolute paths as well
* Removed forwared slashes1 parent 2b8b024 commit 0efd958
2 files changed
Lines changed: 20 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | | - | |
3 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
4 | 13 | | |
5 | 14 | | |
6 | 15 | | |
| |||
29 | 38 | | |
30 | 39 | | |
31 | 40 | | |
32 | | - | |
33 | | - | |
| 41 | + | |
| 42 | + | |
34 | 43 | | |
35 | 44 | | |
36 | 45 | | |
| |||
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
119 | 125 | | |
120 | 126 | | |
121 | 127 | | |
| |||
0 commit comments