-
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy path.check.exs
More file actions
36 lines (31 loc) · 1.68 KB
/
.check.exs
File metadata and controls
36 lines (31 loc) · 1.68 KB
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
35
36
# SPDX-FileCopyrightText: 2025 ash_typescript contributors <https://github.com/ash-project/ash_typescript/graphs/contributors>
#
# SPDX-License-Identifier: MIT
[
## all available options with default values (see `mix check` docs for description)
# parallel: true,
# skipped: true,
## list of tools (see `mix check` docs for defaults)
tools: [
## curated tools may be disabled (e.g. the check for compilation warnings)
# {:compiler, false},
## ...or adjusted (e.g. use one-line formatter for more compact credo output)
# {:credo, "mix credo --format oneline"},
{:compiler, "mix compile --warnings-as-errors"},
{:format, "mix format --check-formatted"},
{:check_formatter, "mix spark.formatter --check"},
{:reuse, command: ["pipx", "run", "reuse", "lint", "-q"]},
{:credo, "mix credo --strict"},
{:sobelow, "mix sobelow --config"},
{:test_codegen, "mix test.codegen"},
{:compile_generated, "mix cmd --cd test/ts npm run compileGenerated", deps: [:test_codegen]},
{:compile_generated_routes, "mix cmd --cd test/ts npm run compileGeneratedRoutes", deps: [:test_codegen]},
{:compile_should_pass, "mix cmd --cd test/ts npm run compileShouldPass", deps: [:test_codegen]},
{:compile_should_fail, "mix cmd --cd test/ts npm run compileShouldFail", deps: [:test_codegen]},
{:test_zod, "mix cmd --cd test/ts npm run testZod", deps: [:test_codegen]},
## custom new tools may be added (mix tasks or arbitrary commands)
# {:my_mix_task, command: "mix release", env: %{"MIX_ENV" => "prod"}},
# {:my_arbitrary_tool, command: "npm test", cd: "assets"},
# {:my_arbitrary_script, command: ["my_script", "argument with spaces"], cd: "scripts"}
]
]