forked from facebook/facebook-ios-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SwiftLint: Add custom rule for placing each let on its own line
Summary: This rule will flag when there are 2 let conditions on the same line. For example: ``` if let lhs = lhs, let rhs = rhs { ``` However one limitation is that it is unable to flag boolean conditions since this is difficult to detect via a regex ``` if let lhs = lhs, a == b { if let lhs = lhs, isBooleanCondition { ``` Reviewed By: samodom Differential Revision: D33844926 fbshipit-source-id: 4f629131ed22d6d7446c1500bcefb787ec4b7861
- Loading branch information
1 parent
f420c86
commit e329438
Showing
5 changed files
with
14 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters