Skip to content
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

Spacing between brace and closure parameters #2186

Open
maveric94 opened this issue May 7, 2018 · 1 comment
Open

Spacing between brace and closure parameters #2186

maveric94 opened this issue May 7, 2018 · 1 comment

Comments

@maveric94
Copy link

maveric94 commented May 7, 2018

New Issue Checklist

Rule Request

Rule to check spacing between opening brace of closure and following parameters and parameters and  'in' keyword. Maybe it can be added to closure_parameter_position rule.

Environment

  • SwiftLint version 0.25.1

  • CocoaPods

  • Xcode version 9.3

// This doesn't triggers a violation:
let test: (Bool) -> Void = {          obj           in
}
@reggian
Copy link

reggian commented Sep 29, 2018

The initial space between opening brace and first closure parameter could also be added to closure_spacing rule (which currently handles only single lined closures).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants