From 24a338d1b72f982b764cced2a40e4d4b97085e93 Mon Sep 17 00:00:00 2001 From: Vlad Date: Tue, 12 May 2020 11:20:04 +0300 Subject: [PATCH] [Add] new closure rule --- xcode/.swiftlint.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xcode/.swiftlint.yml b/xcode/.swiftlint.yml index e7dd90c..7bec346 100644 --- a/xcode/.swiftlint.yml +++ b/xcode/.swiftlint.yml @@ -227,6 +227,12 @@ custom_rules: message: "Returning a boolean as true is redundant, and `!`-syntax is preferred over returning as false." severity: error + single_line_closure: + name: "Single line closure" + regex: '\{[^\n]+ in[^\n]+' + message: "Make a new line after `in` in closure" + severity: error + # Rx unused_map_parameter: