mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
PR feedback
This commit is contained in:
+1
-1
@@ -74,7 +74,7 @@
|
||||
[#1077](https://github.com/realm/SwiftLint/issues/1077)
|
||||
|
||||
* Add `compiler_protocol_init` rule that flags usage of initializers
|
||||
declared in protocols used by compiler such as `ExpressibleByArrayLiteral`
|
||||
declared in protocols used by the compiler such as `ExpressibleByArrayLiteral`
|
||||
that shouldn't be called directly. Instead, you should use a literal anywhere
|
||||
a concrete type conforming to the protocol is expected by the context.
|
||||
[Marcelo Fabri](https://github.com/marcelofabri)
|
||||
|
||||
@@ -64,7 +64,7 @@ public struct CompilerProtocolInitRule: ASTRule, ConfigurationProviderRule {
|
||||
}
|
||||
|
||||
private struct ExpressibleByCompiler {
|
||||
let protocolName: String
|
||||
private let protocolName: String
|
||||
let initCallNames: Set<String>
|
||||
private let arguments: [[String]]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user