Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Piñera committed Oct 27, 2019
1 parent 0d4afd0 commit c955ca6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions Sources/Lib/GitHub.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import Dispatch
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif

public enum GitHub {
public static let baseURL = URL(string: "https://api.github.com")!
Expand Down
10 changes: 5 additions & 5 deletions Tests/action-swiftlintTests/action_swiftlintTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ final class action_swiftlintTests: XCTestCase {
"Can not find `GITHUB_TOKEN` environment variable.\n" : ""

XCTAssertEqual(output, """
Sources/Lib/GitHub.swift:45:16: warning: Nesting Violation: Types should be nested at most 1 level deep (nesting)
Sources/Lib/GitHub.swift:140:9: warning: Nesting Violation: Types should be nested at most 1 level deep (nesting)
Sources/Lib/GitHub.swift:152:9: warning: Nesting Violation: Types should be nested at most 1 level deep (nesting)
Sources/Lib/GitHub.swift:153:13: warning: Nesting Violation: Types should be nested at most 1 level deep (nesting)
Sources/Lib/GitHub.swift:153:13: warning: Nesting Violation: Types should be nested at most 1 level deep (nesting)
Sources/Lib/GitHub.swift:48:16: warning: Nesting Violation: Types should be nested at most 1 level deep (nesting)
Sources/Lib/GitHub.swift:143:9: warning: Nesting Violation: Types should be nested at most 1 level deep (nesting)
Sources/Lib/GitHub.swift:155:9: warning: Nesting Violation: Types should be nested at most 1 level deep (nesting)
Sources/Lib/GitHub.swift:156:13: warning: Nesting Violation: Types should be nested at most 1 level deep (nesting)
Sources/Lib/GitHub.swift:156:13: warning: Nesting Violation: Types should be nested at most 1 level deep (nesting)
Sources/Lib/SwiftLint.swift:6:16: warning: Nesting Violation: Types should be nested at most 1 level deep (nesting)
Sources/Lib/execute().swift:4:68: warning: Large Tuple Violation: Tuples should have at most 2 members. (large_tuple)
\(warningMessage)
Expand Down

0 comments on commit c955ca6

Please sign in to comment.