File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 3232 - @zztkm
3333- [ UPDATE] GitHub Actions で format check をするのをやめる
3434 - @zztkm
35+ - [ UPDATE] SwiftLint の管理を CocoaPods から Swift Package Manager に移行する
36+ - @zztkm
3537
3638## 2025.1.1
3739
Original file line number Diff line number Diff line change @@ -12,6 +12,11 @@ let package = Package(
1212 . library( name: " Sora " , targets: [ " Sora " ] ) ,
1313 . library( name: " WebRTC " , targets: [ " WebRTC " ] ) ,
1414 ] ,
15+ dependencies: [
16+ // 開発用依存関係
17+ // SwfitLint 公式で推奨されている SwfitLintPlugins を利用する
18+ . package ( url: " https://github.com/SimplyDanny/SwiftLintPlugins " , from: " 0.58.2 " )
19+ ] ,
1520 targets: [
1621 . binaryTarget(
1722 name: " WebRTC " ,
Original file line number Diff line number Diff line change 44# 未フォーマットか lint でルール違反を検出したら終了ステータス 1 を返す
55# GitHub Actions では未フォーマット箇所の有無の確認に使う
66
7- PODS_ROOT=Pods
8- SRCROOT=.
9- LINT=${PODS_ROOT} /SwiftLint/swiftlint
10-
117# フォーマットリントは未フォーマットでもステータスコード 0 を返すので
128# ステータスコードチェックを行わない
139swift format lint -r Sora SoraTests
1410swift format -i -r Sora SoraTests
1511
16- $LINT -- fix $SRCROOT
17- $LINT -- strict $SRCROOT
12+ swift package plugin --allow-writing-to-package-directory swiftlint -- fix .
13+ swift package plugin --allow-writing-to-package-directory swiftlint -- strict .
1814lint=$?
1915
2016test $lint -eq 0
You can’t perform that action at this time.
0 commit comments