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 defp aliases do
[ [
precommit: [ precommit: [
"shellcheck",
"credo --strict", "credo --strict",
"gettext.extract --check-up-to-date", "gettext.extract --check-up-to-date",
"deps.unlock --unused", "deps.unlock --unused",
@@ -147,11 +148,12 @@ defmodule MusicLibrary.MixProject do
], ],
"ecto.setup": ["ecto.create", "ecto.migrate"], "ecto.setup": ["ecto.create", "ecto.migrate"],
"ecto.reset": ["ecto.drop", "ecto.setup"], "ecto.reset": ["ecto.drop", "ecto.setup"],
shellcheck: "cmd fd . 'scripts/' --exclude '*.hurl' -t file --exec shellcheck --color",
lint: [ lint: [
"format", "format",
"credo", "credo",
"gettext.extract --merge", "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, # When running the migrate task WITHOUT setting the log_level option,
# Ecto defaults to debug IRRESPECTIVELY of the log level set in # Ecto defaults to debug IRRESPECTIVELY of the log level set in