From 8871f26abdf5c1b30c499e1aac0e1466e2c3c65a Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Wed, 8 Oct 2025 08:53:23 +0300 Subject: [PATCH] Run shellcheck on commit --- mix.exs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mix.exs b/mix.exs index a1f130bc..aaa8de25 100644 --- a/mix.exs +++ b/mix.exs @@ -132,6 +132,7 @@ defmodule MusicLibrary.MixProject do defp aliases do [ precommit: [ + "shellcheck", "credo --strict", "gettext.extract --check-up-to-date", "deps.unlock --unused", @@ -147,11 +148,12 @@ defmodule MusicLibrary.MixProject do ], "ecto.setup": ["ecto.create", "ecto.migrate"], "ecto.reset": ["ecto.drop", "ecto.setup"], + shellcheck: "cmd fd . 'scripts/' --exclude '*.hurl' -t file --exec shellcheck --color", lint: [ "format", "credo", "gettext.extract --merge", - "cmd fd . 'scripts/' --exclude '*.hurl' -t file --exec shellcheck --color" + "shellcheck" ], # When running the migrate task WITHOUT setting the log_level option, # Ecto defaults to debug IRRESPECTIVELY of the log level set in