mirror of
https://github.com/penpot/penpot.git
synced 2025-06-02 20:31:39 +02:00
📎 Fix linter issues.
This commit is contained in:
parent
b2e7bb6be1
commit
053d46144e
5 changed files with 20 additions and 2 deletions
|
@ -1,7 +1,12 @@
|
||||||
{:lint-as {potok.core/reify clojure.core/reify
|
{:lint-as {potok.core/reify clojure.core/reify
|
||||||
promesa.core/let clojure.core/let
|
promesa.core/let clojure.core/let
|
||||||
rumext.alpha/defc clojure.core/defn
|
rumext.alpha/defc clojure.core/defn
|
||||||
|
app.common.data/export clojure.core/def
|
||||||
app.db/with-atomic clojure.core/with-open}
|
app.db/with-atomic clojure.core/with-open}
|
||||||
|
|
||||||
|
:hooks
|
||||||
|
{:analyze-call {app.common.data/export hooks.export/export}}
|
||||||
|
|
||||||
:output
|
:output
|
||||||
{:exclude-files ["data_readers.clj"]}
|
{:exclude-files ["data_readers.clj"]}
|
||||||
|
|
||||||
|
|
11
.clj-kondo/hooks/export.clj
Normal file
11
.clj-kondo/hooks/export.clj
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
(ns hooks.export
|
||||||
|
(:require [clj-kondo.hooks-api :as api]))
|
||||||
|
|
||||||
|
(defn export
|
||||||
|
[{:keys [:node]}]
|
||||||
|
(let [[_ sname] (:children node)
|
||||||
|
result (api/list-node
|
||||||
|
[(api/token-node (symbol "def"))
|
||||||
|
(api/token-node (symbol (name (:value sname))))
|
||||||
|
sname])]
|
||||||
|
{:node result}))
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -30,6 +30,8 @@ node_modules
|
||||||
/exporter/target
|
/exporter/target
|
||||||
/exporter/.shadow-cljs
|
/exporter/.shadow-cljs
|
||||||
/docker/images/bundle*
|
/docker/images/bundle*
|
||||||
|
/common/.shadow-cljs
|
||||||
|
/common/target
|
||||||
/.clj-kondo/.cache
|
/.clj-kondo/.cache
|
||||||
/bundle*
|
/bundle*
|
||||||
/media
|
/media
|
||||||
|
|
|
@ -80,7 +80,7 @@
|
||||||
:max-batch-age (* 10 1000) ; 10s
|
:max-batch-age (* 10 1000) ; 10s
|
||||||
:init []})]
|
:init []})]
|
||||||
(a/go-loop []
|
(a/go-loop []
|
||||||
(when-let [[type events] (a/<! buffer)]
|
(when-let [[_type events] (a/<! buffer)]
|
||||||
(let [res (a/<! (persist-events cfg events))]
|
(let [res (a/<! (persist-events cfg events))]
|
||||||
(when (ex/exception? res)
|
(when (ex/exception? res)
|
||||||
(l/error :hint "error on persiting events"
|
(l/error :hint "error on persiting events"
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
(defmethod ig/init-key ::handler
|
(defmethod ig/init-key ::handler
|
||||||
[_ {:keys [pool max-age] :as cfg}]
|
[_ {:keys [pool max-age] :as cfg}]
|
||||||
(fn [task]
|
(fn [_]
|
||||||
(db/with-atomic [conn pool]
|
(db/with-atomic [conn pool]
|
||||||
(let [interval (db/interval max-age)
|
(let [interval (db/interval max-age)
|
||||||
result (db/exec-one! conn [sql:delete-files-xlog interval])
|
result (db/exec-one! conn [sql:delete-files-xlog interval])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue