We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edc74bd commit d3a46ebCopy full SHA for d3a46eb
lib/auto_formatter/action.ex
@@ -8,6 +8,8 @@ defmodule AutoFormatter.Action do
8
9
alias AutoFormatter.{CommandRunner, HookManager}
10
11
+ @elixir_extensions [".ex", ".exs"]
12
+
13
def perform(:version) do
14
AutoFormatter.version()
15
end
@@ -22,6 +24,7 @@ defmodule AutoFormatter.Action do
22
24
files_list =
23
25
output
26
|> String.split("\n")
27
+ |> Enum.filter(&String.contains?(&1, @elixir_extensions))
28
|> Enum.reverse()
29
|> tl()
30
0 commit comments