-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
35 lines (33 loc) · 905 Bytes
/
Makefile
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
test:
swift test --enable-code-coverage --sanitize=thread --enable-test-discovery
generate-project:
# optionally makes an xcodeproj (instead of opening the package directly)
swift package generate-xcodeproj --enable-code-coverage
open:
open Package.swift
docs:
jazzy
.PHONY: docs
swiftlint:
ifeq (${CI}, true)
swiftlint --config .swiftlint.yml --quiet --strict --reporter github-actions-logging .
else
@echo LINT: SwiftLint...
@swiftlint --config .swiftlint.yml --quiet .
endif
swiftformat:
ifeq (${CI}, true)
swiftformat --config .swiftformat --lint .
else
@echo LINT: SwiftFormat...
@swiftformat --config .swiftformat --quiet .
endif
drstring:
ifeq (${CI}, true)
drstring check --config-file .drstring.toml
else
@echo LINT: DrString...
@drstring format --config-file .drstring.toml || true
@drstring check --config-file .drstring.toml || true
endif
lint: swiftlint swiftformat drstring