You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SwiftLint/Source/SwiftLintFrameworkTests/IntegrationTests.swift:29:54: error: cannot convert value of type 'String' to expected argument type 'StaticString'
XCTFail($0.reason, file: $0.location.file!, line: UInt($0.location.line!))
classIntegrationTests:XCTestCase{func testSwiftLintLints(){// This is as close as we're ever going to get to a self-hosting linter.letdirectory=(((__FILE__ asNSString).stringByDeletingLastPathComponent asNSString).stringByDeletingLastPathComponent asNSString).stringByDeletingLastPathComponent
NSFileManager.defaultManager().changeCurrentDirectoryPath(directory)letconfig=Configuration(path:Configuration.fileName)letswiftFiles= config.lintableFilesForPath("")XCTAssert(swiftFiles.map({$0.path!}).contains(__FILE__),"current file should be included")letviolations= swiftFiles.flatMap{Linter(file: $0, configuration: config).styleViolations
}
violations.forEach{XCTFail($0.reason, file: $0.location.file!, line:UInt($0.location.line!))}}}
log:
That is expanding linting result into
XCTFail()
that introduced on #404:Related:
https://bugs.swift.org/browse/SR-308?jql=text%20~%20%22staticstring%22
swiftlang/swift#888
swiftlang/swift-corelibs-xctest#27
😢
The text was updated successfully, but these errors were encountered: