Skip to content

Commit

Permalink
maint: upgrade clj-kondo
Browse files Browse the repository at this point in the history
Enabled new redundant-fn-wrapper linter.

Much to my surprise, given the number of folks who have worked on
cljdoc, it only found one instance of unnecessary wrapping!
  • Loading branch information
lread committed Feb 9, 2022
1 parent c1d26f1 commit abb606f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .clj-kondo/config.edn
Expand Up @@ -5,5 +5,6 @@
clojure.java.jdbc/with-db-transaction clojure.core/let
clojure.test.check.clojure-test/defspec clojure.core/def
clojure.test.check.properties/for-all clojure.core/let}
:linters {:unused-binding {:exclude-destructured-keys-in-fn-args true}
:linters {:redundant-fn-wrapper {:level :warning} ;; experimental linter, let's give it a go
:unused-binding {:exclude-destructured-keys-in-fn-args true}
:unresolved-var {:exclude [clj-commons.digest/sha-256]}}}
2 changes: 1 addition & 1 deletion deps.edn
Expand Up @@ -86,7 +86,7 @@
:main-opts ["-m" "kaocha.runner"]}

:clj-kondo
{:extra-deps {clj-kondo/clj-kondo {:mvn/version "2022.01.15"}}
{:extra-deps {clj-kondo/clj-kondo {:mvn/version "2022.02.09"}}
:main-opts ["-m" "clj-kondo.main"]}

:cli
Expand Down
4 changes: 1 addition & 3 deletions src/cljdoc/server/pedestal.clj
Expand Up @@ -501,9 +501,7 @@
:search [(interceptor/interceptor {:name ::search :enter #(pu/ok-html % (render-search/search-page %))})]
:shortcuts [(interceptor/interceptor {:name ::shortcuts :enter #(pu/ok-html % (render-meta/shortcuts %))})]
:sitemap [(sitemap-interceptor storage)]
:show-build [(pu/coerce-body-conf
(fn html-render [ctx]
(cljdoc.render.build-log/build-page ctx)))
:show-build [(pu/coerce-body-conf cljdoc.render.build-log/build-page)
(pu/negotiate-content #{"text/html" "application/edn" "application/json"})
(show-build build-tracker)]
:all-builds [(all-builds build-tracker)]
Expand Down

0 comments on commit abb606f

Please sign in to comment.