clj-commons / clj-commons/formatter

Reordering ns forms?

Open
#3 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
No language data
Stars
35
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Do we want to reorder ns forms to follow something like Stuart Sierra’s [style guide](
https://stuartsierra.com/2016/clojure-how-to-ns.html)? (I’m really in favour of this personally).

If we do want to reorder ns forms, what should they look like? What are some of the edge cases that we would face here?

I'm not sure whether we'd want to do [line breaks](https://stuartsierra.com/2016/clojure-how-to-ns.html#line-breaks) in the way Stuart suggested. This tool would be able to sort namespaces programmatically, not manually in an editor.

> This recommendation is slightly different from common practice, but it makes it easier to sort names with editor commands (sort-lines in Emacs).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.