Skip to content

Commit 51f50f7

Browse files
authored
Merge pull request #236 from shiguredo/feature/add-makefile-for-swift-format
swift-format と SwiftLint 実行用の Makefile を追加する
2 parents db663aa + 0d4f086 commit 51f50f7

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@
3939
- [UPDATE] 開発用の依存管理を Swift Package Manager に移行したので Podfile.dev を削除する
4040
- GitHub Actions でも Podfile.dev を利用していたので、利用しないように変更
4141
- @zztkm
42+
- [ADD] swift-format と SwiftLint 実行用の Makefile を追加する
43+
- lint-format.sh で実行していたコマンドを個別に実行できるようにした
44+
- @zztkm
4245

4346
## 2025.1.1
4447

Makefile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.PHONY: fmt fmt-lint lint
2+
3+
# swift-format
4+
fmt:
5+
swift format --in-place --recursive Sora SoraTests
6+
7+
# swift-format lint
8+
fmt-lint:
9+
swift format lint --strict --parallel --recursive Sora SoraTests
10+
11+
# SwiftLint
12+
lint:
13+
swift package plugin --allow-writing-to-package-directory swiftlint --fix .
14+
swift package plugin --allow-writing-to-package-directory swiftlint --strict .
15+
16+
# すべてを実行
17+
all: fmt-lint fmt lint

0 commit comments

Comments
 (0)