-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.mise.toml
More file actions
39 lines (34 loc) · 800 Bytes
/
Copy path.mise.toml
File metadata and controls
39 lines (34 loc) · 800 Bytes
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
37
38
39
[vars]
sources = "Sources"
tests = "Tests"
swiftlint = '~/.local/bin/mise x -- swiftlint'
swiftformat = '~/.local/bin/mise x -- swiftformat'
[tools]
swiftlint = "0.62.2"
swiftformat = "0.58.5"
[tasks.lint]
description = 'Run all linters'
depends = ["swiftlint:*", "swiftformat"]
[tasks."swiftlint:sources"]
description = 'Run SwiftLint for source files'
quiet = true
run = """
{{ vars.swiftlint }} lint \
--config .swiftlint.yml \
--strict \
{{ vars.sources }}
"""
[tasks."swiftlint:tests"]
description = 'Run SwiftLint for test files'
quiet = true
run = """
{{ vars.swiftlint }} lint \
--config .swiftlint.yml \
--config .swiftlint.tests.yml \
--strict \
{{ vars.tests }}
"""
[tasks.swiftformat]
description = 'Run SwiftFormat for all files'
quiet = true
run = "{{ vars.swiftformat }} . --lint"