Skip to content

KTlint reporter arguments #347

Closed
Closed
@JustinTullgren

Description

@JustinTullgren

Hi,

I was wondering if it is possible to specify the reporter for ktlint? The userData map doesn't seem to send cli args but just editor config args, though I could be misunderstanding.

I have tried a few variations:

kotlin {
        ktlint(Versions.KT_LINT)
            .userData(mapOf("color" to "", "--reporter" to "checkstyle"))
}
kotlin {
        ktlint(Versions.KT_LINT)
            .userData(mapOf("color" to "", "reporter" to "checkstyle"))
}

If this is supported I would appreciate a pointer on how to accomplish this. If it is not I would request a feature enhancement for it.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions