Skip to content

Commit

Permalink
Add example for #3581
Browse files Browse the repository at this point in the history
Fixes #3581
  • Loading branch information
marcelofabri committed Nov 7, 2023
1 parent 020a0e1 commit ed245e8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -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)
Expand Down
Expand Up @@ -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: [
Expand Down

0 comments on commit ed245e8

Please sign in to comment.