diff --git a/.gitignore b/.gitignore index b1a772b9..49a06933 100644 --- a/.gitignore +++ b/.gitignore @@ -12,4 +12,4 @@ DerivedData/ .docc-build /openapi -/.swiftlint +/tmp diff --git a/Makefile b/Makefile index 8e2f1ced..de98c1e1 100644 --- a/Makefile +++ b/Makefile @@ -127,7 +127,7 @@ docs-preview: ./Documentation/build.sh preview SWIFTLINT_VERSION = $(shell head -1 .swiftlint.yml | cut -d' ' -f2) -SWIFTLINT_BIN = .swiftlint/swiftlint-$(SWIFTLINT_VERSION) +SWIFTLINT_BIN = tmp/swiftlint-$(SWIFTLINT_VERSION) SWIFTLINT_URL = https://github.com/realm/SwiftLint/releases/download/$(SWIFTLINT_VERSION)/$(if $(IS_MAC),portable_swiftlint,swiftlint_linux).zip .PHONY: lint @@ -135,12 +135,12 @@ lint: $(SWIFTLINT_BIN) $(SWIFTLINT_BIN) $(SWIFTLINT_FLAGS) $(SWIFTLINT_BIN): - @rm -rf .swiftlint - @mkdir -p .swiftlint - curl -fSL $(SWIFTLINT_URL) -o .swiftlint/swiftlint.zip - unzip -q .swiftlint/swiftlint.zip swiftlint -d .swiftlint - @rm -f .swiftlint/swiftlint.zip - @mv .swiftlint/swiftlint $@ + @rm -rf tmp + @mkdir -p tmp + curl -fSL $(SWIFTLINT_URL) -o tmp/swiftlint.zip + unzip -q tmp/swiftlint.zip swiftlint -d tmp + @rm -f tmp/swiftlint.zip + @mv tmp/swiftlint $@ SPEC_URL = https://developer.apple.com/sample-code/app-store-connect/app-store-connect-openapi-specification.zip