Run shellcheck on commit

This commit is contained in:
Claudio Ortolina
2025-10-08 08:53:23 +03:00
parent 5950739940
commit 8871f26abd
+3 -1
View File
@@ -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