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 support validating placeholder and viewController module #109

Merged
merged 2 commits into from
Sep 13, 2019

Conversation

rb-de0
Copy link
Contributor

@rb-de0 rb-de0 commented Sep 10, 2019

This PR adds support validating module of a placeholder or viewController.
Currently we are using this tool, but I think we need to validate module in a placeholder or a ViewController.

This PR also update the related tests.

@giginet giginet self-requested a review September 10, 2019 16:49
Copy link
Collaborator

@kateinoigakukun kateinoigakukun left a comment

Choose a reason for hiding this comment

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

LGTM 🍀

Copy link
Member

@giginet giginet left a comment

Choose a reason for hiding this comment

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

@rb-de0 LGTM except with trivial points.

I'll merge this PR after you fixed.

let okUrl = fixture.path("Resources/Rules/CustomModuleRule/CustomModuleOKTest.xib")
let okViolations = try! rule.validate(xib: XibFile(url: okUrl))
XCTAssertEqual(okViolations.count, 0)
let storyboardNgUrl = fixture.path("Resources/Rules/CustomModuleRule/CustomModuleNGTest.storyboard")
Copy link
Member

Choose a reason for hiding this comment

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

storyboardNGURL

Copy link
Member

Choose a reason for hiding this comment

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

I think abbreviations is named in capital cases in commonly Swift style guide.

let okUrl = fixture.path("Resources/Rules/CustomModuleRule/CustomModuleOKTest.xib")
let okViolations = try! rule.validate(xib: XibFile(url: okUrl))
XCTAssertEqual(okViolations.count, 0)
let storyboardNgUrl = fixture.path("Resources/Rules/CustomModuleRule/CustomModuleNGTest.storyboard")
let storyboardNgViolations = try! rule.validate(storyboard: StoryboardFile(url: storyboardNgUrl))
Copy link
Member

Choose a reason for hiding this comment

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

storyboardNGViolations

@rb-de0
Copy link
Contributor Author

rb-de0 commented Sep 12, 2019

@giginet Thank you for your review!. I fixed the points.

@giginet
Copy link
Member

giginet commented Sep 13, 2019

@rb-de0 Sorry also about storyboardOkUrl.

@giginet
Copy link
Member

giginet commented Sep 13, 2019

I'll add small fixes after merging. Thanks!!!

@giginet giginet merged commit 0bcc377 into IBDecodable:master Sep 13, 2019
@giginet
Copy link
Member

giginet commented Sep 13, 2019

I'll release newer version soon

@giginet giginet mentioned this pull request Sep 16, 2019
@giginet
Copy link
Member

giginet commented Sep 17, 2019

@rb-de0 Sorry for waiting you. I released 0.4.17 onto Homebrew/CocoaPods 🎉

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.

None yet

3 participants