-
Notifications
You must be signed in to change notification settings - Fork 229
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 ignore identifiers starting with '@' #197
Conversation
`isIdentifier` always returned false.
Thanks! |
🙏 |
Hey @norio-nomura, do you remember why you did this? In realm/SwiftLint#608 you said that otherwise Swift 2.2 tests failed, but I can't reproduce that, and now we just discovered that this introduced a regression in jazzy: realm/jazzy#530 I obviously don't want to revert this if it will cause other regressions, but I don't know what those are 😄 |
Never mind, I can reproduce the failures... I'll have to see how to fix one bug without reintroducing the other! |
Sorry for missing documentation. |
@jpsim I want to see the regression of realm/jazzy#530. Where can I check that? |
You can see the diff to jazzy's generated output here: https://github.com/realm/jazzy-integration-specs/compare/jp-render-swift-declarations-in-objc The regression is the lost extension documentation in Moya. I have some ideas on how to fix this for both SwiftLint and jazzy but it's a bit complex. It involves checking the structure depth of the previous documentation comment compared to the documented declaration, and validating the structures in between. |
Thanks for information. /// Extension for processing raw NSData generated by network access.
@available(*, deprecated, message="This will be removed when ReactiveCocoa 4 becomes final. Please visit https://github.com/Moya/Moya/issues/298 for more information.")
public extension RACSignal { Now I know the reason why you added checking I think we need to detect attributes much smarter. |
That seems difficult. |
I came up with another idea that use parent structure's body offset or sibling structure's end offset for limiting search doc comment. |
Yeah, this is along the lines of what I meant in #197 (comment). There's no rush for this, if you don't get around to doing this, I'll probably find time at some point, just to get realm/jazzy#530 out. |
It seems my fix is not needed. |
yeah I fixed this in #95, sorry for not updating this thread when that happened! 😬 |
isIdentifier
always returned false.