From 7cdc6a81e5ea79c2f773556e373cf4b13e9dbfde Mon Sep 17 00:00:00 2001 From: Frederick Pietschmann <19194800+fredpi@users.noreply.github.com> Date: Wed, 2 May 2018 16:33:50 +0200 Subject: [PATCH] Add inline comment space SwiftLint rule --- .swiftlint.yml | 6 ++++++ CONTRIBUTING.md | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.swiftlint.yml b/.swiftlint.yml index 78bff2f..8d99afc 100755 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -56,6 +56,12 @@ custom_rules: name: "If as Guard" message: "Don't use an if statement to just return – use guard for such cases instead." severity: warning + inline_comment_space: + included: ".*.swift" + regex: '[^\s(\/\/)]+([ ]{2,}|)(?