9

I am running a Kotlin project with ktlint maven plugin (first time user). but whenever I do a maven build. I often see the failure along the lines of

src/main/kotlin/com/myproject/model/User.kt:7:1: Wildcard import (cannot be auto-corrected)

Since I use IntelliJ, I often rely on auto import where many subpackages are grouped into a wildcard (*). Is this what ktline used to enforce good import practices?

夢のの夢
  • 4,060
  • 5
  • 27
  • 49

1 Answers1

8

As of version 0.34 or thereabouts you can override individual rules via editorconfig. This worked for me. https://github.com/pinterest/ktlint#editorconfig

Alec
  • 409
  • 3
  • 4