-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.mise.toml
More file actions
37 lines (32 loc) · 749 Bytes
/
.mise.toml
File metadata and controls
37 lines (32 loc) · 749 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
[vars]
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 \
Sources Macros
"""
[tasks."swiftlint:tests"]
description = 'Run SwiftLint for test files'
quiet = true
run = """
{{ vars.swiftlint }} lint \
--config .swiftlint.yml \
--config .swiftlint.tests.yml \
--strict \
Tests
"""
[tasks.swiftformat]
description = 'Run SwiftFormat for all files'
quiet = true
run = "{{ vars.swiftformat }} . --lint"