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

Fix regex for ignoring closure parameter on detecting return value #325

Merged
merged 2 commits into from
Jan 8, 2016

Conversation

norio-nomura
Copy link
Collaborator

fix #324

@@ -135,6 +135,7 @@ public struct ValidDocsRule: Rule {
"\n///- parameter param2: this is void too" +
"\npublic func no(param: (Void -> Void)?, param2: String->Void) {}",
"/// docs👨‍👩‍👧‍👧\n/// - returns: false\npublic func no() -> Bool { return false }",
"/// docs\n/// - returns: tuple\npublic func no() -> (Int, Int) {return (1, 2)}",
Copy link
Contributor

Choose a reason for hiding this comment

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

😍

@jpsim
Copy link
Collaborator

jpsim commented Jan 8, 2016

Awesome! Great work as always @norio-nomura

jpsim added a commit that referenced this pull request Jan 8, 2016
Fix regex for ignoring closure parameter on detecting return value
@jpsim jpsim merged commit ef4e3c9 into master Jan 8, 2016
@jpsim jpsim deleted the nn-fix-324 branch January 8, 2016 00:29
@norio-nomura
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.

valid_docs triggers a warning on tuples
3 participants