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
Plugin expansion to add factory method structure checks. #102
Comments
Part of the way through implementing this, and just realized I should probably ask: Would this be part of the kotlin generation process or separate plugin functionality? I think I know the answer, but just to be clear... Option 1 - Kotlin GenPros:
Cons:
Option 2 - Separate plugin implementationPros:
Cons:
|
I liked option 2, and went with that if you want to take a look before I PR: https://github.com/hzsweers/RxBinding/tree/z/structured_checks |
Option 2 is fine, although sharing code between the two plugins shouldn't be out of the question. I don't think it needs the option to disable, create a task called |
Looks like it already caught some missing things, too! |
Expand the
buildSrc
plugin to verify certain commonalities to these factory methods:@CheckResult
on method@NonNull
on method (Normalize @NonNull / checkNotNull usage #20)@NonNull
on all parameters (Normalize @NonNull / checkNotNull usage #20)Action1
return types use a wildcard bound (? super Integer
)Func1
use a wildcard for first parameterized type (? super ViewEvent
)The text was updated successfully, but these errors were encountered: