-
Notifications
You must be signed in to change notification settings - Fork 42
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
Add support validating placeholder and viewController module #109
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🍀
There was a problem hiding this 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") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
storyboardNGURL
There was a problem hiding this comment.
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)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
storyboardNGViolations
@giginet Thank you for your review!. I fixed the points. |
@rb-de0 Sorry also about |
I'll add small fixes after merging. Thanks!!! |
I'll release newer version soon |
@rb-de0 Sorry for waiting you. I released 0.4.17 onto Homebrew/CocoaPods 🎉 |
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.