Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/auto_formatter/action.ex
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ defmodule AutoFormatter.Action do

alias AutoFormatter.{CommandRunner, HookManager}

@elixir_extensions [".ex", ".exs"]

def perform(:version) do
AutoFormatter.version()
end
Expand All @@ -22,6 +24,7 @@ defmodule AutoFormatter.Action do
files_list =
output
|> String.split("\n")
|> Enum.filter(&String.contains?(&1, @elixir_extensions))
|> Enum.reverse()
|> tl()
|> Enum.reverse()
Expand Down