Ktlint fails with Wildcard import (cannot be auto-corrected)

Issue

When I run gradlew ktlintCheck it fails with a lot of

Wildcard import (cannot be auto-corrected)

errors.

Solution

Create a .editorconfig file on root level and add amongst others:

disabled_rules=no-wildcard-imports

Answered By – Ralf Wickum

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published