-
Notifications
You must be signed in to change notification settings - Fork 6
/
.check.exs
34 lines (32 loc) · 1.59 KB
/
.check.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Docs: https://hexdocs.pm/ex_check/Mix.Tasks.Check.html#module-configuration-file
[
tools: [
# Lib
{:check_test_file_names, "mix holo.test.check_file_names test/elixir/hologram"},
{:compiler, env: %{"MIX_ENV" => "test"}},
{:credo, env: %{"MIX_ENV" => "test"}},
{:dialyzer, enabled: true},
{:doctor, env: %{"MIX_ENV" => "test"}},
{:eslint, "mix eslint"},
{:ex_doc, env: %{"MIX_ENV" => "test"}},
{:ex_unit, enabled: true},
{:formatter, env: %{"MIX_ENV" => "test"}},
{:hex_audit, "mix hex.audit"},
{:mix_audit, env: %{"MIX_ENV" => "test"}},
{:prettier,
"assets/node_modules/.bin/prettier '*.yml' '.github/**' 'assets/*.json' 'assets/*.mjs' 'assets/js/**' 'test/javascript/**' --check --config 'assets/.prettierrc.json' --no-error-on-unmatched-pattern"},
{:sobelow, "mix sobelow --config"},
{:test_js, "mix test.js"},
# Feature tests app
{:features_check_test_file_names,
command: "mix holo.test.check_file_names test", cd: "test/features"},
{:features_compiler,
command: "mix compile --all-warnings --warnings-as-errors", cd: "test/features"},
{:features_credo, command: "mix credo --strict", cd: "test/features"},
{:features_dialyzer, command: "mix dialyzer", cd: "test/features"},
{:features_ex_unit, command: "mix test --warnings-as-errors", cd: "test/features"},
{:features_formatter, command: "mix format --check-formatted", cd: "test/features"},
{:features_hex_audit, command: "mix hex.audit", cd: "test/features"},
{:features_mix_audit, command: "mix deps.unlock --check-unused", cd: "test/features"}
]
]