Skip to content

Comments

Fix clojure-sort-ns mangling :gen-class#697

Open
bbatsov wants to merge 1 commit intomasterfrom
fix-sort-ns-gen-class
Open

Fix clojure-sort-ns mangling :gen-class#697
bbatsov wants to merge 1 commit intomasterfrom
fix-sort-ns-gen-class

Conversation

@bbatsov
Copy link
Member

@bbatsov bbatsov commented Feb 20, 2026

Fixes #527

Only sort ns sub-forms with sortable content (:require, :import, :use, :refer-clojure, :require-macros). Other keyword forms like :gen-class are skipped over rather than having their key-value pairs rearranged.

Only sort ns sub-forms that have sortable content (:require, :import,
:use, :refer-clojure, :require-macros). Other keyword forms like
:gen-class are skipped rather than having their contents rearranged.
@bbatsov bbatsov force-pushed the fix-sort-ns-gen-class branch from 9740943 to 1745225 Compare February 20, 2026 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

clojure-sort-ns does not handle forms like :gen-class

1 participant