Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Check that the indents in your code align with the parenthesis
Clojure
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
doc
src/validate_indent
test
.gitignore
LICENSE
README.md
project.clj

README.md

Validate Indent

validate-indent is a clojure program to validate indents in clojure source code. Example:

For this file:

(defn foo [a b c]
  (if (and (= a 1) (= b 3)))
    (prn "foo")
    (prn "bar")

Will give you an error on line 3 because there's an indent without a corresponding opening brace/paren.

To look at a bit more complex example clone the repo and run it with lein run test/file_with_bad_indents.clj will give the output test/file_with_bad_indents.clj: 12, 16, 23 to show that those line numbers are the ones I screwed up the indenting on to create the example :P

Something went wrong with that request. Please try again.