Add example for #3581 (#5334)

Fixes #3581
This commit is contained in:
Marcelo Fabri
2023-11-07 01:26:15 -08:00
committed by GitHub
parent 7499896199
commit da597eaeca
2 changed files with 12 additions and 0 deletions
+1
View File
@@ -47,6 +47,7 @@
* Rewrite `vertical_parameter_alignment_on_call` rule using SwiftSyntax, fixing
some false positives.
[Marcelo Fabri](https://github.com/marcelofabri)
[#3581](https://github.com/realm/SwiftLint/issues/3581)
* Rewrite `no_grouping_extension` rule using SwiftSyntax.
[Marcelo Fabri](https://github.com/marcelofabri)
@@ -71,6 +71,17 @@ struct VerticalParameterAlignmentOnCallRule: OptInRule {
Example("""
myFunc(foo: 0,
bar: baz == 0)
"""),
Example("""
UIViewPropertyAnimator.runningPropertyAnimator(
withDuration: 2.0,
delay: 0.0,
options: [.curveEaseIn]
) {
// animations
} completion: { _ in
// completion
}
""")
],
triggeringExamples: [