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

Statement Position Error: If there is a word including "catch" after the line break. #237

Closed
hiseri opened this issue Nov 26, 2015 · 2 comments
Labels
bug Unexpected and reproducible misbehavior.

Comments

@hiseri
Copy link

hiseri commented Nov 26, 2015

Please see an example below.

struct SwiftLint {
    let title: String
    let catchphrase: String
}

let hoge = SwiftLint(
    title: "title",
    catchphrase: "catchphrase" // Warning Occurred
)

Warning is ...

Statement Position Violation: Else and catch should be on the same line, one space after the previous declaration. (statement_position)

Check this issue, please.
Thank you.

@jpsim jpsim added the bug Unexpected and reproducible misbehavior. label Nov 26, 2015
@jpsim
Copy link
Collaborator

jpsim commented Nov 26, 2015

Thanks for reporting this along with a good repro case. This is now fixed in #238.

@auraamitios
Copy link

auraamitios commented Aug 28, 2018

remove the space between the statement written under if and else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unexpected and reproducible misbehavior.
Projects
None yet
Development

No branches or pull requests

3 participants