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 empty_parentheses_with_trailing_closure rule #958

Merged
merged 3 commits into from
Dec 11, 2016
Merged

Add empty_parentheses_with_trailing_closure rule #958

merged 3 commits into from
Dec 11, 2016

Conversation

marcelofabri
Copy link
Collaborator

Fixes #885

]
)

public enum Kind: String {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this is the second place where this enum is needed and the 3rd where "source.lang.swift.expr.call" is used. Should we create a shared enum? If so, where?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes! This should live in SourceKittenFramework though.

return []
}

let rangeStart = nameOffset + nameLength
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

using bodyOffset and bodyLength were giving incorrect ranges ¯_(ツ)_/¯

@codecov-io
Copy link

codecov-io commented Dec 11, 2016

Current coverage is 83.96% (diff: 100%)

Merging #958 into master will increase coverage by 0.10%

@@             master       #958   diff @@
==========================================
  Files           120        121     +1   
  Lines          5517       5552    +35   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits           4627       4662    +35   
  Misses          890        890          
  Partials          0          0          

Powered by Codecov. Last update 205c308...0209c46

Copy link
Collaborator

@jpsim jpsim left a comment

Choose a reason for hiding this comment

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

👌 💯. Top notch implementation. You're a pro, @marcelofabri!

@jpsim jpsim merged commit bda2b45 into realm:master Dec 11, 2016
@marcelofabri marcelofabri deleted the empty-parentheses-closure branch December 11, 2016 14:26
@marcelofabri
Copy link
Collaborator Author

🎉 🚢

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.

3 participants