New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unneeded_parentheses_in_closure_argument doesn't work with capture lists #1817

Closed
marcelofabri opened this Issue Sep 6, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@marcelofabri
Collaborator

marcelofabri commented Sep 6, 2017

New Issue Checklist

Bug Report

Complete output when running SwiftLint, including the stack trace and command used
$ swiftlint lint

Environment

  • SwiftLint version (run swiftlint version to be sure)? 0.22.0
  • Installation method used (Homebrew, CocoaPods, building from source, etc)? CocoaPods
  • Paste your configuration file:
opt_in_rules:
  - unneeded_parentheses_in_closure_argument
  • Are you using nested configurations?
    If so, paste their relative paths and respective contents. Nop
  • Which Xcode version are you using (check xcode-select -p)? Xcode 9
  • Do you have a sample that shows the issue? Run echo "[string here]" | swiftlint lint --no-cache --use-stdin --enable-all-rules
    to quickly test if your example is really demonstrating the issue. If your example is more
    complex, you can use swiftlint lint --path [file here] --no-cache --enable-all-rules.
// This should trigger unneeded_parentheses_in_closure_argument
foo.bar { [weak self] (x,y) in }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment