Skip to content

Unwanted closing_brace violation warning #592

Closed
@toshi0383

Description

I believe this is unwanted behavior of closing_brace rule.

$ cat AnimationBlock.swift
UIView.animateWithDuration(
    0.2,
    animations: {
        self.layoutIfNeeded()
        self.underline.show()
    },
    completion: {
        _ in
        completion()
    }
)
$ swiftlint lint --path AnimationBlock.swift
Loading configuration from '.swiftlint.yml'
Linting Swift files at path AnimationBlock.swift
Linting 'AnimationBlock.swift' (1/1)
/Users/toshi0383/dvideo/tv/app/AnimationBlock.swift:9:5: warning: Closing Brace Spacing Violation: Closing brace with closing parenthesis should not have any whitespaces in the middle. (closing_brace)
Done linting! Found 1 violation, 0 serious in 1 file.
$ swiftlint version
0.9.2

Metadata

Assignees

No one assigned

    Labels

    bugUnexpected and reproducible misbehavior.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions