Fork me on GitHub
#clj-kondo
<
2023-08-20
>
Ronny Li16:08:35

Hi folks, does anyone know the correct ordering for the following namespaces? I keep getting Unsorted namespace and I feel like I tried every possible combination

[ :as io]
   [clojure-csv.core :as csv]
   [clojure.string :as string]

skynet16:08:26

the - will be sorted before/after the . (I forget which, try both)

borkdude17:08:58

(ns babashka.dude
  (:require [clojure-csv.core :as csv]
            [ :as io]
            [clojure.string :as string]))

Ronny Li18:08:25

Thanks everyone, unfortunately still seeing Unsorted namespace: clojure-csv.core

borkdude18:08:47

this is because environ.core goes after clojure.*

borkdude18:08:03

if you use cljfmt it will format this for you automatically

Ronny Li18:08:41

oh geez that's so embarrassing. Thank you!

borkdude18:08:22

no problem :)