Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/boxed/clojure-validate-indent
Check that the indents in your code align with the parenthesis
https://github.com/boxed/clojure-validate-indent
Last synced: 2 months ago
JSON representation
Check that the indents in your code align with the parenthesis
- Host: GitHub
- URL: https://github.com/boxed/clojure-validate-indent
- Owner: boxed
- License: unlicense
- Created: 2014-02-13T08:03:15.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-16T15:10:06.000Z (almost 11 years ago)
- Last Synced: 2024-10-04T17:42:44.721Z (3 months ago)
- Language: Clojure
- Homepage:
- Size: 180 KB
- Stars: 9
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Validate Indent
===============`validate-indent` is a clojure program to validate indents in clojure source code. Example:
For this file:
```clojure
(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