Liking cljdoc? Tell your friends :D

cljstyle.format.core

Core formatting logic which ties together all rules.

Core formatting logic which ties together all rules.
raw docstring

reformat-fileclj

(reformat-file file-text rules-config)

Like reformat-string but applies to an entire file. Will add a final newline if configured to do so.

Like `reformat-string` but applies to an entire file. Will add a final
newline if configured to do so.
sourceraw docstring

reformat-file*clj

(reformat-file* file-text rules-config)

Like reformat-string* but applies to an entire file. Will add a final newline if configured to do so. Returns a map with the revised text and other information.

Like `reformat-string*` but applies to an entire file. Will add a final
newline if configured to do so. Returns a map with the revised text and other
information.
sourceraw docstring

reformat-formclj

(reformat-form form rules-config)

Apply formatting rules to the given form.

Apply formatting rules to the given form.
sourceraw docstring

reformat-stringclj

(reformat-string form-string rules-config)

Transform a string by parsing it, formatting it, then printing it. Returns the formatted string.

Transform a string by parsing it, formatting it, then
printing it. Returns the formatted string.
sourceraw docstring

reformat-string*clj

(reformat-string* form-string rules-config)

Transform a string by parsing it, formatting it, then rendering it. Returns a map with the revised string under :formatted and a map of the durations spent applying each rule under :durations.

Transform a string by parsing it, formatting it, then rendering it. Returns
a map with the revised string under `:formatted` and a map of the durations
spent applying each rule under `:durations`.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close