greglook / cljstyle

A tool for formatting Clojure code
Eclipse Public License 1.0
293 stars 39 forks source link

Support attr-map in ns form #50

Closed tobias closed 4 years ago

tobias commented 4 years ago

An ns form like:

(ns foo.bar
   {:baz "baz"})

results in the file being skipped with: clojure.lang.ExceptionInfo: Unknown ns node form :map

The attr-map is an alternate way to specify metadata for the ns.

I started implementing this, but got stuck on how to correctly transform a node that represents the map. I'm happy to keep working on it, but could use some guidance.