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

add ConditionalBindingCascadeRule #327

Closed
wants to merge 10 commits into from
Closed

add ConditionalBindingCascadeRule #327

wants to merge 10 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Jan 8, 2016

Add a rule to check for repeated let statements in a conditional binding cascade. (Task from #202)

@ghost ghost changed the title add ConditionalBindingCascadeRule [WIP] add ConditionalBindingCascadeRule Jan 8, 2016
@ghost
Copy link
Author

ghost commented Jan 8, 2016

@jpsim initial thoughts?

@@ -9,6 +9,10 @@
* Add AutoCorrect for StatementPositionRule.
[Raphael Randschau](https://github.com/nicolai86)

* Add ConditionalBindingCascadeRule.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is missing the two trailing spaces as described in CONTRIBUTING.md.

@jpsim jpsim mentioned this pull request Jan 8, 2016
5 tasks
@jpsim
Copy link
Collaborator

jpsim commented Jan 8, 2016

This is great 👏! It actually looks complete to me, is there a reason you marked this as [WIP]?

Aaron McTavish added 2 commits January 11, 2016 08:15
@ghost
Copy link
Author

ghost commented Jan 11, 2016

@jpsim There are still some edge cases I'm working out. One example is that if let a = b { if let c = d { triggers the rule as a false positive. Not great Swift either, but it really should be a violation of a different rule.

@ghost ghost changed the title [WIP] add ConditionalBindingCascadeRule add ConditionalBindingCascadeRule Jan 11, 2016
@ghost
Copy link
Author

ghost commented Jan 11, 2016

@jpsim Ok, ready for final review and merge.

@jpsim
Copy link
Collaborator

jpsim commented Jan 11, 2016

Great work @aamctustwo! Will merge in #338.

@jpsim jpsim closed this Jan 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant