Skip to content

Commit

Permalink
Add failing test from #683 to CommaRule
Browse files Browse the repository at this point in the history
  • Loading branch information
norio-nomura committed Jun 8, 2016
1 parent 4d6d7cd commit 82fef35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/SwiftLintFramework/Rules/CommaRule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ public struct CommaRule: CorrectableRule, ConfigurationProviderRule {
triggeringExamples: [
"func abc(a: String↓ ,b: String) { }",
"abc(a: \"string\"↓,b: \"string\"",
"enum a { case a↓ ,b }"
"enum a { case a↓ ,b }",
"let result = plus(\n first: 3↓ , // #683\n second: 4\n)\n",
],
corrections: [
"func abc(a: String,b: String) {}\n": "func abc(a: String, b: String) {}\n",
Expand Down

0 comments on commit 82fef35

Please sign in to comment.