Move lint, precommit, shellcheck from mix aliases to mise scripts
Mix aliases should only compose mix tasks. Shell tool orchestration (shellcheck, fd) belongs in mise scripts. This removes the mix cmd escape hatch and makes the boundary clear: mix.exs for pure mix composition, scripts/ for cross-toolchain orchestration.
This commit is contained in:
+12
-1
@@ -8,4 +8,15 @@ source "$(git rev-parse --show-toplevel)/scripts/_helpers.sh"
|
||||
|
||||
ensure_working_directory!
|
||||
|
||||
mix lint
|
||||
debug_msg "Formatting..."
|
||||
mix format
|
||||
|
||||
debug_msg "Running credo..."
|
||||
mix credo
|
||||
|
||||
debug_msg "Extracting translations..."
|
||||
mix gettext.extract --merge
|
||||
|
||||
debug_msg "Running shellcheck..."
|
||||
fd . 'scripts/' --exclude '*.hurl' -t file --exec shellcheck --color
|
||||
fd . '.claude/hooks' -t file --exec shellcheck --color
|
||||
|
||||
+21
-1
@@ -8,4 +8,24 @@ source "$(git rev-parse --show-toplevel)/scripts/_helpers.sh"
|
||||
|
||||
ensure_working_directory!
|
||||
|
||||
mix precommit
|
||||
debug_msg "Running shellcheck..."
|
||||
fd . 'scripts/' --exclude '*.hurl' -t file --exec shellcheck --color
|
||||
fd . '.claude/hooks' -t file --exec shellcheck --color
|
||||
|
||||
debug_msg "Running credo..."
|
||||
mix credo --strict
|
||||
|
||||
debug_msg "Running sobelow..."
|
||||
mix sobelow --compact --exit
|
||||
|
||||
debug_msg "Checking translations..."
|
||||
mix gettext.extract --check-up-to-date
|
||||
|
||||
debug_msg "Checking formatting..."
|
||||
mix format --check-formatted
|
||||
|
||||
debug_msg "Checking unused deps..."
|
||||
mix deps.unlock --unused
|
||||
|
||||
debug_msg "Running tests..."
|
||||
mix test
|
||||
|
||||
Reference in New Issue
Block a user