Skip to content

Commit dda980e

Browse files
committed
Add more CIDER indent spec metas
defapi, defroutes, letroutes
1 parent 226e4f5 commit dda980e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/compojure/api/api.clj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,5 @@
6565
" (:doc (meta #'compojure.api.middleware/api-middleware)))}
6666
defapi
6767
[name & body]
68+
{:style/indent 1}
6869
`(def ~name (api ~@body)))

src/compojure/api/core.clj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"Define a Ring handler function from a sequence of routes.
2121
The name may optionally be followed by a doc-string and metadata map."
2222
[name & routes]
23+
{:style/indent 1}
2324
(let [[name routes] (macro/name-with-attributes name routes)]
2425
`(def ~name (routes ~@routes))))
2526

@@ -28,6 +29,7 @@
2829
2930
Equivalent to: `(let [...] (routes ...))`"
3031
[bindings & body]
32+
{:style/indent 2}
3133
`(let ~bindings (routes ~@body)))
3234

3335
(defn undocumented

0 commit comments

Comments
 (0)