File tree 3 files changed +9
-6
lines changed
Tests/action-swiftlintTests
3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 1
- FROM norionomura/swiftlint:swift-5
1
+ FROM norionomura/swiftlint:swift-5.1.1
2
2
LABEL version="2.1.0"
3
3
LABEL repository="https://github.com/norio-nomura/action-swiftlint"
4
4
LABEL homepage="https://github.com/norio-nomura/action-swiftlint"
Original file line number Diff line number Diff line change 1
1
import Dispatch
2
2
import Foundation
3
+ #if canImport(FoundationNetworking)
4
+ import FoundationNetworking
5
+ #endif
3
6
4
7
public enum GitHub {
5
8
public static let baseURL = URL ( string: " https://api.github.com " ) !
Original file line number Diff line number Diff line change @@ -12,11 +12,11 @@ final class action_swiftlintTests: XCTestCase {
12
12
" Can not find `GITHUB_TOKEN` environment variable. \n " : " "
13
13
14
14
XCTAssertEqual ( output, """
15
- Sources/Lib/GitHub.swift:45 :16: warning: Nesting Violation: Types should be nested at most 1 level deep (nesting)
16
- Sources/Lib/GitHub.swift:140 :9: warning: Nesting Violation: Types should be nested at most 1 level deep (nesting)
17
- Sources/Lib/GitHub.swift:152 :9: warning: Nesting Violation: Types should be nested at most 1 level deep (nesting)
18
- Sources/Lib/GitHub.swift:153 :13: warning: Nesting Violation: Types should be nested at most 1 level deep (nesting)
19
- Sources/Lib/GitHub.swift:153 :13: warning: Nesting Violation: Types should be nested at most 1 level deep (nesting)
15
+ Sources/Lib/GitHub.swift:48 :16: warning: Nesting Violation: Types should be nested at most 1 level deep (nesting)
16
+ Sources/Lib/GitHub.swift:143 :9: warning: Nesting Violation: Types should be nested at most 1 level deep (nesting)
17
+ Sources/Lib/GitHub.swift:155 :9: warning: Nesting Violation: Types should be nested at most 1 level deep (nesting)
18
+ Sources/Lib/GitHub.swift:156 :13: warning: Nesting Violation: Types should be nested at most 1 level deep (nesting)
19
+ Sources/Lib/GitHub.swift:156 :13: warning: Nesting Violation: Types should be nested at most 1 level deep (nesting)
20
20
Sources/Lib/SwiftLint.swift:6:16: warning: Nesting Violation: Types should be nested at most 1 level deep (nesting)
21
21
Sources/Lib/execute().swift:4:68: warning: Large Tuple Violation: Tuples should have at most 2 members. (large_tuple)
22
22
\( warningMessage)
You can’t perform that action at this time.
0 commit comments