Build with carthage breaks with Swiftlint 0.25.0
marciogranzotto opened this issue · comments
With the new Swiftlint 0.25.0
installed, Carthage install fails with 9 linter errors:
(...)/Carthage/Checkouts/Telegraph/Sources/Clients/WebSocketClientError.swift:15:8: error: Identifier Name Violation: Enum element name should only contain alphanumeric characters: 'handshakeFailed(response:)' (identifier_name)
(...)/Carthage/Checkouts/Telegraph/Sources/Security/KeychainError.swift:15:8: error: Identifier Name Violation: Enum element name should only contain alphanumeric characters: 'other(code:)' (identifier_name)
(...)/Carthage/Checkouts/Telegraph/Sources/Protocols/WebSockets/Models/WebSocketParser.swift:53:10: error: Identifier Name Violation: Enum element name should only contain alphanumeric characters: 'extendedPayloadLength16(byteNo:)' (identifier_name)
(...)/Carthage/Checkouts/Telegraph/Sources/Protocols/WebSockets/Models/WebSocketParser.swift:54:10: error: Identifier Name Violation: Enum element name should only contain alphanumeric characters: 'extendedPayloadLength64(byteNo:)' (identifier_name)
(...)/Carthage/Checkouts/Telegraph/Sources/Protocols/WebSockets/Models/WebSocketParser.swift:55:10: error: Identifier Name Violation: Enum element name should only contain alphanumeric characters: 'maskingKey(byteNo:)' (identifier_name)
(...)/Carthage/Checkouts/Telegraph/Sources/Protocols/WebSockets/Models/WebSocketMessage.swift:35:8: error: Identifier Name Violation: Enum element name should only contain alphanumeric characters: 'binary(_:)' (identifier_name)
(...)/Carthage/Checkouts/Telegraph/Sources/Protocols/WebSockets/Models/WebSocketMessage.swift:36:8: error: Identifier Name Violation: Enum element name should only contain alphanumeric characters: 'text(_:)' (identifier_name)
(...)/Carthage/Checkouts/Telegraph/Sources/Protocols/WebSockets/Models/WebSocketMessage.swift:37:8: error: Identifier Name Violation: Enum element name should only contain alphanumeric characters: 'close(code:reason:)' (identifier_name)
(...)/Carthage/Checkouts/Telegraph/Sources/Protocols/HTTP/Models/HTTPError.swift:25:8: error: Identifier Name Violation: Enum element name should only contain alphanumeric characters: 'parseFailed(code:)' (identifier_name)
Done linting! Found 9 violations, 9 serious in 78 files.
** ARCHIVE FAILED **
The following build commands failed:
PhaseScriptExecution [SwiftLint]\ Analyze\ Source /Users/(...)/Library/Caches/org.carthage.CarthageKit/DerivedData/11.1_11A1027/Telegraph/0.27/Build/Intermediates.noindex/ArchiveIntermediates/Telegraph\ iOS/IntermediateBuildFilesPath/Telegraph.build/Release-iphoneos/Telegraph\ iOS.build/Script-8246E0601FB26D8C0006A6C5.sh
(1 failure)
Looks like you have to add an exclusion rule for identifier_name
or fix the linter errors. Meanwhile it's impossible to build with Carthage and that Swiftlint version.