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

type_name rule now validates typealias and associatedtype #955

Merged
merged 2 commits into from
Dec 12, 2016
Merged

type_name rule now validates typealias and associatedtype #955

merged 2 commits into from
Dec 12, 2016

Conversation

marcelofabri
Copy link
Collaborator

@marcelofabri marcelofabri commented Dec 10, 2016

Fixes #49 and #956

"uppercase character and span between 3 and 40 characters in length.",
nonTriggeringExamples: ["class", "struct", "enum"].flatMap({ type in
private static func nonTriggeringExamples() -> [String] {
let typeExamples: [String] = ["class", "struct", "enum"].flatMap { type -> [String] in
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I added all theses type annotations because it was taking too long to compile 😬

@codecov-io
Copy link

codecov-io commented Dec 10, 2016

Current coverage is 81.10% (diff: 94.73%)

Merging #955 into master will increase coverage by 0.14%

@@             master       #955   diff @@
==========================================
  Files           123        123          
  Lines          5774       5838    +64   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits           4675       4735    +60   
- Misses         1099       1103     +4   
  Partials          0          0          

Powered by Codecov. Last update 288a3ec...fce551a

@marcelofabri marcelofabri changed the title type_name rule now validates typealias too type_name rule now validates typealias and associatedtype Dec 10, 2016
@jpsim
Copy link
Collaborator

jpsim commented Dec 12, 2016

Can you please rebase this so we can confirm it builds and passes tests on Linux?

@jpsim jpsim merged commit c5bcece into realm:master Dec 12, 2016
@jpsim
Copy link
Collaborator

jpsim commented Dec 12, 2016

🎉

@marcelofabri marcelofabri deleted the typealias-name branch December 12, 2016 22:09
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