Skip to content
New issue

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

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

Already on GitHub? # to your account

Conditional binding cascade rule does not work #617

Closed
BoonMap opened this issue Apr 15, 2016 · 0 comments
Closed

Conditional binding cascade rule does not work #617

BoonMap opened this issue Apr 15, 2016 · 0 comments
Assignees
Labels
bug Unexpected and reproducible misbehavior.

Comments

@BoonMap
Copy link

BoonMap commented Apr 15, 2016

Dear team,

Below is my sample code

// MARK: Condition binding cascade rule
func conditionBindingCascade() -> Void {
let a: String? = "a"
let b: String? = "b"

    // Preffered
    if let a = a, b = b {
        debugPrint("Preffered \(a),\(b)")
    }

    // Not preffered
    if let c = a, let d = b {
        debugPrint("Not preffered \(c),\(d)")
    }
}

And it is not warned. This rule has enabled, I'd checked in command line with "swiftlint rules" command.

@norio-nomura norio-nomura added the bug Unexpected and reproducible misbehavior. label Apr 15, 2016
@norio-nomura norio-nomura self-assigned this Apr 15, 2016
norio-nomura added a commit that referenced this issue Apr 15, 2016
norio-nomura added a commit that referenced this issue Apr 15, 2016
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Unexpected and reproducible misbehavior.
Projects
None yet
Development

No branches or pull requests

2 participants