Skip to content

Commit

Permalink
Fix "found unknown escape character" while trying to run swiftlint 0.…
Browse files Browse the repository at this point in the history
…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")
  • Loading branch information
jawwad committed Apr 28, 2017
1 parent 862209b commit 03393a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 :]"
Expand Down

0 comments on commit 03393a8

Please sign in to comment.