From 993f7dfd2abe95d426fc08aa6ca9a25a113baf58 Mon Sep 17 00:00:00 2001 From: Igor Kislyuk Date: Thu, 4 May 2017 14:44:29 +0300 Subject: [PATCH] Fix. Rule condition --- .swiftlint.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.swiftlint.yml b/.swiftlint.yml index 0ebc6f0..e764437 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -91,6 +91,17 @@ custom_rules: spaces_around_braces: included: ".*.swift" name: "Spaces around the braces" - regex: '(([A-Za-z0-9])[\{\}])|([\{\}](\S)([A-Za-z0-9]))' + regex: '(([A-Za-z0-9])[\{\}])|([\{\}]([A-Za-z0-9]))' message: "No spaces around the braces" severity: error + match_kinds: + - attribute.builtin + - attribute.id + - buildconfig.id + - buildconfig.keyword + - identifier + - keyword + - objectliteral + - parameter + - placeholder + - typeidentifier