Skip to content

Commit 4073336

Browse files
authored
Merge pull request cloverage#151 from cloverage/cljfmt
Fix cljfmt issues introduced by long-standing PRs
2 parents c8f654b + c5648e1 commit 4073336

File tree

3 files changed

+15
-20
lines changed

3 files changed

+15
-20
lines changed

cloverage/project.clj

+3-5
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@
1414
:comments "same as Clojure"}
1515
:deploy-repositories [["clojars" {:username :env/clojars_username :password :env/clojars_password :sign-releases false}]]
1616
:plugins [[lein-release "1.0.9"]]
17-
:lein-release {
18-
:scm :git ; Because we're not in the top-level directory, so it doesn't auto-detect
19-
:deploy-via :clojars
20-
}
17+
:lein-release {:scm :git ; Because we're not in the top-level directory, so it doesn't auto-detect
18+
:deploy-via :clojars}
2119
:dependencies [[org.clojure/tools.reader "1.0.0-beta3"]
2220
[org.clojure/tools.cli "0.3.5"]
2321
[org.clojure/tools.logging "0.3.1"]
@@ -28,7 +26,7 @@
2826
[cheshire "5.6.3"]]
2927
:profiles {:dev {:aot ^:replace []
3028
:dependencies [[org.clojure/clojure "1.8.0"]]
31-
:plugins [[lein-cljfmt "0.5.6"]] }
29+
:plugins [[lein-cljfmt "0.5.6"]]}
3230
:1.4 {:dependencies [[org.clojure/clojure "1.4.0"]]}
3331
:1.5 {:dependencies [[org.clojure/clojure "1.5.1"]]}
3432
:1.6 {:dependencies [[org.clojure/clojure "1.6.0"]]}

cloverage/src/cloverage/rewrite.clj

+10-11
Original file line numberDiff line numberDiff line change
@@ -30,25 +30,24 @@
3030
[f form]
3131
(walk (partial prewalk f) identity (f form)))
3232

33-
3433
(defn do-walk [pred f forms]
3534
(prewalk
36-
(fn [x] (if (pred x) (f x) x))
37-
forms))
35+
(fn [x] (if (pred x) (f x) x))
36+
forms))
3837

3938
(defn cs? [s]
4039
(chunked-seq? s))
4140

4241
(defn chunked-if? [form]
4342
(and
44-
(seq? form)
45-
(= (first form) 'if)
46-
(seq? (second form))
47-
(= (first (second form)) `chunked-seq?)))
43+
(seq? form)
44+
(= (first form) 'if)
45+
(seq? (second form))
46+
(= (first (second form)) `chunked-seq?)))
4847

4948
(defn unchunk [forms]
5049
(->>
51-
forms
52-
(do-walk `#{chunked-seq?} (constantly `cs?))
53-
macroexpand
54-
(do-walk chunked-if? #(nth % 3))))
50+
forms
51+
(do-walk `#{chunked-seq?} (constantly `cs?))
52+
macroexpand
53+
(do-walk chunked-if? #(nth % 3))))

lein-cloverage/project.clj

+2-4
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@
1111
:distribution :repo
1212
:comments "same as Clojure"}
1313
:plugins [[lein-release "1.0.9"]]
14-
:lein-release {
15-
:scm :git ; Because we're not in the top-level directory, so it doesn't auto-detect
16-
:deploy-via :clojars
17-
}
14+
:lein-release {:scm :git ; Because we're not in the top-level directory, so it doesn't auto-detect
15+
:deploy-via :clojars}
1816
:deploy-repositories [["clojars" {:username :env/clojars_username :password :env/clojars_password :sign-releases false}]]
1917
:min-lein-version "2.0.0"
2018
:dependencies [[bultitude "0.2.8"]]

0 commit comments

Comments
 (0)