Skip to content

[trailing-closure] rule needs to be more stringent #401

@ArtSabintsev

Description

@ArtSabintsev

Tailor Version: v0.9.0
Swift Version: 2.2
Platform (Mac/Linux/Windows/CI): Mac
Installation Method: Homebrew

guard let x = x.filter({ return $0.id == someString }).first else {
    return
}

The code snippet above requires parenthesis as it is a chained call.

Unfortunately, tailor flags this as an issue requiring that a trailing-closure should be used.

Please make this rule more stringent.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions