Core formatting logic which ties together all rules.
Core formatting logic which ties together all rules.
(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.
(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.
(reformat-form form rules-config)
Apply formatting rules to the given form.
Apply formatting rules to the given form.
(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.
(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`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close