Migrate dev:static-checks to dev:lint in standalone script
This commit is contained in:
Executable
+7
@@ -0,0 +1,7 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
#MISE description="Run static checks for code formatting, translations, quality"
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
mix lint
|
||||||
@@ -53,10 +53,6 @@ hide = true
|
|||||||
|
|
||||||
# DEVELOPMENT/TEST
|
# DEVELOPMENT/TEST
|
||||||
|
|
||||||
[tasks."dev:static-checks"]
|
|
||||||
description = 'Run static checks for code formatting, translations, quality'
|
|
||||||
run = 'mix do format, credo, gettext.extract --merge'
|
|
||||||
|
|
||||||
[tasks.test]
|
[tasks.test]
|
||||||
description = 'Run project tests'
|
description = 'Run project tests'
|
||||||
run = 'mix test'
|
run = 'mix test'
|
||||||
|
|||||||
@@ -147,6 +147,11 @@ 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"],
|
||||||
|
lint: [
|
||||||
|
"format",
|
||||||
|
"credo",
|
||||||
|
"gettext.extract --merge"
|
||||||
|
],
|
||||||
# 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
|
||||||
# config/test.exs. The debug log level persists while the first 2-3
|
# config/test.exs. The debug log level persists while the first 2-3
|
||||||
|
|||||||
Reference in New Issue
Block a user