From 03393a86a3864221ff1f0b7137eefb619bf19698 Mon Sep 17 00:00:00 2001 From: Jawwad Ahmad Date: Fri, 28 Apr 2017 06:17:13 +0500 Subject: [PATCH] Fix "found unknown escape character" while trying to run swiftlint 0.18.1 Also update the smiley face regex check to have a space before the colon so that it doesn't match: fatalError("init(coder:) has not been implemented") --- .swiftlint.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.swiftlint.yml b/.swiftlint.yml index 1434bf637..6cb714110 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -17,8 +17,8 @@ disabled_rules: custom_rules: smiley_face: name: "Smiley Face" - regex: "(\:\))" - match_kinds: + regex: '( :\))' + match_kinds: - comment - string message: "A closing parenthesis smiley :) creates a half-hearted smile, and thus is not preferred. Use :]"