I am creating custom rules in swiftlint program.
This is my reference: https://github.com/realm/SwiftLint
I wanted to add a custom rule where I have to detect 2 or more spaces after ','. So I added this rule.
comma_space_rule:
regex: ",[ ]{2,}"
message: "Expected only one space after ',"
But this is not working. The swiftlint help doesn't help much. Also the github doesn't mention the regex rules.
So I looked into Swift regex format and this seems to be fine. Am I missing something here ?