Skip to content

Commit

Permalink
Specify files attribute for Elixir programs
Browse files Browse the repository at this point in the history
  • Loading branch information
akirak committed Oct 15, 2023
1 parent 42e1b60 commit 3db0e34
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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 = {
Expand All @@ -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 = {
Expand Down

0 comments on commit 3db0e34

Please sign in to comment.