Skip to content

Commit fdb8426

Browse files
authored
Merge pull request #12 from pepibumur/master
import FoundationNetworking
2 parents a7dec07 + c955ca6 commit fdb8426

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM norionomura/swiftlint:swift-5
1+
FROM norionomura/swiftlint:swift-5.1.1
22
LABEL version="2.1.0"
33
LABEL repository="https://github.com/norio-nomura/action-swiftlint"
44
LABEL homepage="https://github.com/norio-nomura/action-swiftlint"

Sources/Lib/GitHub.swift

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import Dispatch
22
import Foundation
3+
#if canImport(FoundationNetworking)
4+
import FoundationNetworking
5+
#endif
36

47
public enum GitHub {
58
public static let baseURL = URL(string: "https://api.github.com")!

Tests/action-swiftlintTests/action_swiftlintTests.swift

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ final class action_swiftlintTests: XCTestCase {
1212
"Can not find `GITHUB_TOKEN` environment variable.\n" : ""
1313

1414
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)
2020
Sources/Lib/SwiftLint.swift:6:16: warning: Nesting Violation: Types should be nested at most 1 level deep (nesting)
2121
Sources/Lib/execute().swift:4:68: warning: Large Tuple Violation: Tuples should have at most 2 members. (large_tuple)
2222
\(warningMessage)

0 commit comments

Comments
 (0)