Skip to content

[Kotlin] Do not use wildcard import #1401

@wing328

Description

@wing328
Description

ktlint cannot auto-correct wildcard import:

➜  openapi-generator git:(kotlin_post_process) ✗ /usr/local/bin/ktlint -F /Users/williamcheng/Code/openapi-generator/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt
/Users/williamcheng/Code/openapi-generator/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt:6:1: Wildcard import (cannot be auto-corrected)
openapi-generator version

Latest master

Command line used for generation
Steps to reproduce
 /usr/local/bin/ktlint -F /Users/williamcheng/Code/openapi-generator/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt
Related issues/PRs

#1400

Suggest a fix/enhancement

If anyone wants to help on this, please reply to let us know.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions