From 3db0e3457be750234a1c6cb97e5ba4e63c592c26 Mon Sep 17 00:00:00 2001 From: Akira Komamura Date: Sun, 15 Oct 2023 21:53:24 +0900 Subject: [PATCH] Specify files attribute for Elixir programs --- modules/hooks.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/hooks.nix b/modules/hooks.nix index 9ea69da3..a088ca1d 100644 --- a/modules/hooks.nix +++ b/modules/hooks.nix @@ -2129,14 +2129,14 @@ in name = "mix-format"; description = "Runs the built-in Elixir syntax formatter"; entry = "${pkgs.elixir}/bin/mix format"; - types = [ "file" ]; + files = "\\.exs?$"; }; mix-test = { name = "mix-test"; description = "Runs the built-in Elixir test framework"; entry = "${pkgs.elixir}/bin/mix test"; - types = [ "file" ]; + files = "\\.exs?$"; }; credo = { @@ -2145,7 +2145,7 @@ in entry = let strict = if settings.credo.strict then "--strict" else ""; in "${pkgs.elixir}/bin/mix credo"; - types = [ "file" ]; + files = "\\.exs?$"; }; vale = { @@ -2169,7 +2169,7 @@ in name = "dialyzer"; description = "Runs a static code analysis using Dialyzer"; entry = "${pkgs.elixir}/bin/mix dialyzer"; - types = [ "file" ]; + files = "\\.exs?$"; }; crystal = {