Skip to content

Commit

Permalink
Add failing correction example from #466 to CommaRule
Browse files Browse the repository at this point in the history
  • Loading branch information
norio-nomura committed Feb 17, 2016
1 parent 0d6ed5c commit 8539953
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/SwiftLintFramework/Rules/CommaRule.swift
Expand Up @@ -33,7 +33,8 @@ public struct CommaRule: CorrectableRule, ConfigurationProviderRule {
"func abc(a: String,b: String) {}\n": "func abc(a: String, b: String) {}\n",
"abc(a: \"string\",b: \"string\"\n": "abc(a: \"string\", b: \"string\"\n",
"abc(a: \"string\" , b: \"string\"\n": "abc(a: \"string\", b: \"string\"\n",
"enum a { case a ,b }\n": "enum a { case a, b }\n"
"enum a { case a ,b }\n": "enum a { case a, b }\n",
"let a = [1,1]\nlet b = 1\nf(1, b)\n": "let a = [1, 1]\nlet b = 1\nf(1, b)\n",
]
)

Expand Down

0 comments on commit 8539953

Please sign in to comment.