Liking cljdoc? Tell your friends :D

clj-tidy Build Status

clj-tidy is a wrapper around JTidy. Currently only validation (errors and warnings) are supported. clj-tidy wraps the original InputSteam-based interface of JTidy with strings for input and maps of the validation errors as output.

Releases and Dependency Information

clj-tidy is released via Clojars. The Latest stable release is 0.0.1

Leiningen dependency information:

[clj-tidy "0.0.1"]

Maven dependency information:


Example Usage

(require '[clj-tidy.core :as tidy])

(tidy/warnings-and-errors "hmm")
; ({:line 1,
;   :column 1,
;   :type :warning,
;   :message "missing <!DOCTYPE> declaration",
;   :line-content "hmm"}
;  {:line 1,
;   :column 1,
;   :type :warning,
;   :message "plain text isn't allowed in <head> elements",
;   :line-content "hmm"}
;  {:line 1,
;   :column 4,
;   :type :warning,
;   :message "inserting missing 'title' element",
;   :line-content "hmm"})


Copyright © 2015 6 Wunderkinder GmbH.

Distributed under the MIT License.

Can you improve this documentation?Edit on GitHub

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

× close