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

AnnotationOnSeparateLine rule on steroids #608

Closed
winstonvk opened this issue Oct 9, 2019 · 2 comments
Closed

AnnotationOnSeparateLine rule on steroids #608

winstonvk opened this issue Oct 9, 2019 · 2 comments
Labels

Comments

@winstonvk
Copy link

winstonvk commented Oct 9, 2019

Duplicate issue from here

Could you please add field excludedAnnotations: to AnnotationOnSeparateLine rule?

Expected Behavior of the rule

example: excludedAnnotations: 'retrofit2.http.Query,retrofit2.http.Body'
So, this annotation won't be forced to move on separate line:

    @GET("/foo")
    fun bar(
        @Query("id") id: String
    ): Single<MyResponse>
@Tapchicoma
Copy link
Collaborator

For you solution would be to disable "experimental:annotation" rule.

If still want to to have this rule active, but exclude some annotations from it, you could copy the code of this rule and create your custom one.

@Tapchicoma
Copy link
Collaborator

In next release "experimental:annotation" rule will allow to have annotation on the same line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants