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

Improve adding @Suppress at super class #2588

Open
paul-dingemans opened this issue Mar 3, 2024 · 0 comments
Open

Improve adding @Suppress at super class #2588

paul-dingemans opened this issue Mar 3, 2024 · 0 comments
Milestone

Comments

@paul-dingemans
Copy link
Collaborator

Given code below:

@ExperimentalSerializationApi
public abstract class AbstractDecoder : Decoder, CompositeDecoder {
}

Supressing the class-signature rule on CompositeDecoder with ktlint-intellij-plugin leads to code like:

@ExperimentalSerializationApi
public abstract class AbstractDecoder : Decoder, @Suppress("ktlint:standard:class-signature")
CompositeDecoder {

It resolves the problem for CompositeDecoder but not for Decoder. The suppression annotation should be at the class instead:

@ExperimentalSerializationApi
@Suppress("ktlint:standard:class-signature")
public abstract class AbstractDecoder : Decoder, CompositeDecoder {
@paul-dingemans paul-dingemans added this to the 1.3.0 milestone Mar 3, 2024
paul-dingemans added a commit that referenced this issue Mar 31, 2024
…ter-list-wrapping at a class or function level

Closes #2588
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

No branches or pull requests

1 participant