cespare / goclj

Clojure parsing in Go
MIT License
37 stars 6 forks source link

Alphabetical order of requires and imports is not always respected #50

Closed jwhitbeck closed 7 years ago

jwhitbeck commented 7 years ago

Example cljftmt output:

(ns project.core
  (:require clojure.java.io
            [clojure.edn :as edn])
  (:import java.util.concurrent.LinkedBlockingQueue
           [java.net Socket]))

Should probably be:

(ns project.core
  (:require [clojure.edn :as edn]
            clojure.java.io )
  (:import [java.net Socket]
           java.util.concurrent.LinkedBlockingQueue))
cespare commented 7 years ago

Sure, that seems reasonable, though personally I avoid the non-vector style at all (it looks bad).