Run shellcheck on commit
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user