cursive-ide / cursive

Cursive: The IDE for beautiful Clojure code
581 stars 7 forks source link

Automate StuartSierra's 'how to namespace' #1595

Open sfnelson opened 7 years ago

sfnelson commented 7 years ago

https://stuartsierra.com/2016/clojure-how-to-ns.html

Stuart Sierra's opinionated 'How to namespace' blog post may not be to everyone's taste, but it would be great for cursive to automate it for teams that do conform. I'd like to see warnings for non-conforming ns forms, duplicate imports, incorrect list/vector etc usage, and automatic layout and sorting. These behaviours could be guarded by an auto-formatter preference similar to the existing behaviours (e.g. prefer lists or vectors for imports) to ensure that the un-enlightened are not offended.

danielcompton commented 7 years ago

Dupe of #1197?

sfnelson commented 7 years ago

Related certainly. I want more than just 'organise imports' though.