Skip to content

Optimize Imports cljs require sorting should match clj-kondo #3097

@cmf

Description

@cmf

A user reports that Cursive's Optimize Imports action appears to disagree with clj-kondo about require ordering for certain ClojureScript namespaces.

Example

Given these cljs requires:

[goog.crypt.Sha1]
[goog.crypt.base64 :as b64]

Cursive's Optimize Imports command and clj-kondo appear to prefer different ordering.

Expected result

Cursive should sort cljs requires in the same order as clj-kondo, so running Optimize Imports does not create churn or warnings/disagreements with kondo.

Notes

User wording:

Does Cursive do anything to interact with IntelliJ's 'Optimize Imports' command? It seems to work very nicely, except that it and clj-kondo seem to disagree about the ordering of the following cljs requires: [goog.crypt.Sha1] and [goog.crypt.base64 :as b64].

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugMarks issues describing bugsreleased-eapMarks issues which have had the fixes released in an EAP build

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions