question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

KTlint reporter arguments

See original GitHub issue

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!

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Ahmed-Abdelmegedcommented, Dec 22, 2020

I never did a plugin dev before but I will try my best to make this PR. Thanks! @nedtwigg

0reactions
nedtwiggcommented, Dec 5, 2021

Now that #1012 has merged, it should be easier to build this if anybody wants to contribute a PR.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ktlint
ktlint aims to capture the official Kotlin coding conventions and Android ... Customizable output Several reporters are available out-of-the-box: plain (+ ...
Read more >
Standard rules - Ktlint
Argument list wrapping¶. Rule-id: argument-list-wrapping ... Imports ordered consistently (see Custom ktlint EditorConfig properties for more).
Read more >
KtLint configuration
Ktlint uses some properties defined by .editorconfig, IntelliJ IDEA and ... rule set provided by KtLint ktlint_experimental_type-argument-list-spacing ...
Read more >
Command line - Ktlint
When no arguments are specified, the style of all Kotlin files (ending with '.kt' or ... ktlint supports different type of reporters for...
Read more >
Experimental rules - Ktlint
Spacing before and after the angle brackets of a type argument list. Rule id: experimental:type-argument-list-spacing. Type parameter list spacing¶. Spacing ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found