-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (22 loc) · 817 Bytes
/
Copy pathMakefile
File metadata and controls
25 lines (22 loc) · 817 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
# Variables
SUBMODULE_DIR = Tests/JSONSchemaTests/JSON-Schema-Test-Suite
JSON_TEST_SUITE_DIR = Tests/OrderedJSONTests/JSONTestSuite
# Target to initialize and update the submodule
update-submodule:
@git submodule init
@git submodule update --remote $(SUBMODULE_DIR)
@git submodule update --remote $(JSON_TEST_SUITE_DIR)
@echo "Submodules updated successfully."
format:
@find Sources Tests \
-name '*.swift' \
-not -path '*/JSON-Schema-Test-Suite/*' \
-not -path '*/JSONTestSuite/*' \
-print0 | xargs -0 swift-format format --in-place --parallel
@find Sources Tests \
-name '*.swift' \
-not -path '*/JSON-Schema-Test-Suite/*' \
-not -path '*/JSONTestSuite/*' \
-print0 | xargs -0 swift-format lint --strict --parallel
@echo "Swift code formatted successfully."
.PHONY: clean-submodule format