Skip to content

Improve adding @Suppress at super class #2588

Description

@paul-dingemans

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 {

Metadata

Metadata

Assignees

No one assigned

    Labels

    ParkedIssue is not likely to be solved or has no clear resolution yet

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions