diff --git a/docsets/SwiftLintCore.docset/Contents/Resources/Documents/prefer_key_path.html b/docsets/SwiftLintCore.docset/Contents/Resources/Documents/prefer_key_path.html index af516a415..8a32b848b 100644 --- a/docsets/SwiftLintCore.docset/Contents/Resources/Documents/prefer_key_path.html +++ b/docsets/SwiftLintCore.docset/Contents/Resources/Documents/prefer_key_path.html @@ -423,13 +423,6 @@ true // restrict_to_standard_functions: false // -f { $0 } - - -
//
-// restrict_to_standard_functions: false
-//
-
 f() { g() }
 
 
@@ -444,13 +437,6 @@ true // restrict_to_standard_functions: false // -f { a in a } - - -
//
-// restrict_to_standard_functions: false
-//
-
 f { a, b in a.b }
 
 
@@ -481,6 +467,8 @@ true
#Predicate { $0.a }
 
+
let transform: (Int) -> Int = nil ?? { $0.a }
+

Triggering Examples

f.map ↓{ $0.a }
 
@@ -531,6 +519,8 @@ true let f: (Int) -> Int = ↓{ $0.bigEndian } + +
transform = ↓{ $0.a }
 
diff --git a/docsets/SwiftLintCore.tgz b/docsets/SwiftLintCore.tgz index 36889d2f5..4a7e1b41e 100644 Binary files a/docsets/SwiftLintCore.tgz and b/docsets/SwiftLintCore.tgz differ diff --git a/prefer_key_path.html b/prefer_key_path.html index af516a415..8a32b848b 100644 --- a/prefer_key_path.html +++ b/prefer_key_path.html @@ -423,13 +423,6 @@ true // restrict_to_standard_functions: false // -f { $0 } - - -
//
-// restrict_to_standard_functions: false
-//
-
 f() { g() }
 
 
@@ -444,13 +437,6 @@ true // restrict_to_standard_functions: false // -f { a in a } - - -
//
-// restrict_to_standard_functions: false
-//
-
 f { a, b in a.b }
 
 
@@ -481,6 +467,8 @@ true
#Predicate { $0.a }
 
+
let transform: (Int) -> Int = nil ?? { $0.a }
+

Triggering Examples

f.map ↓{ $0.a }
 
@@ -531,6 +519,8 @@ true let f: (Int) -> Int = ↓{ $0.bigEndian } + +
transform = ↓{ $0.a }