You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So far cljstyle mostly avoids moving comments around or otherwise formatting them, but there are a few rules that come to mind as useful additions:
Enforce that stand-alone comments start with two semicolons (;;) - this matches convention and keeps Emacs from pushing the comment far to the right as it does with single-semicolon comments.
Apply indentation rules to comments. Right now a reindented form leaves comments at their original indent, requiring manual fixup later.
Wrap long comments at a certain column.
The text was updated successfully, but these errors were encountered:
I don't know if this counts as comment formatting, but I end up with things that look like this:
(clojure.test/deftest test-at-line-425
(clojure.test/is (= true (discard-with-form?
'(:discard
(:whitespace " ")
(:map
(:keyword ":a") (:whitespace " ")
(:number "1")))))))
;; XXX: iiuc, discard forms in parcera can have up to 2
;; elements in them. if there are two elements,
;; the first is whitespace.
;;
;; if the understanding above is false, the following
;; code should be modified.
(defn undiscard
[ast]
(when (discard-with-form? ast)
(->> (rest ast)
(drop-while whitespace?)
first)))
I'd like for there to be a line between the last line of the first deftest form and the first line of the comment. I tried a variety of configuration settings without much success.
FWIW, the following is what I had in .cljstyle to produce the output above:
So far
cljstyle
mostly avoids moving comments around or otherwise formatting them, but there are a few rules that come to mind as useful additions:;;
) - this matches convention and keeps Emacs from pushing the comment far to the right as it does with single-semicolon comments.The text was updated successfully, but these errors were encountered: