2023-10-11 21:53:34 +00:00
|
|
|
{:config-paths ["status-im"]
|
|
|
|
:lint-as {status-im.utils.views/defview clojure.core/defn
|
2023-01-05 14:58:37 +00:00
|
|
|
status-im.utils.views/letsubs clojure.core/let
|
|
|
|
reagent.core/with-let clojure.core/let
|
|
|
|
status-im.utils.fx/defn clj-kondo.lint-as/def-catch-all
|
|
|
|
utils.re-frame/defn clj-kondo.lint-as/def-catch-all
|
|
|
|
quo.react/with-deps-check clojure.core/fn
|
|
|
|
quo.previews.preview/list-comp clojure.core/for
|
|
|
|
status-im.utils.styles/def clojure.core/def
|
|
|
|
status-im.utils.styles/defn clojure.core/defn
|
|
|
|
test-helpers.unit/deftest-sub clojure.core/defn
|
|
|
|
taoensso.tufte/defnp clojure.core/defn}
|
2023-10-05 18:50:57 +00:00
|
|
|
:linters {:case-duplicate-test {:level :error}
|
|
|
|
:case-quoted-test {:level :error}
|
|
|
|
:case-symbol-test {:level :error}
|
|
|
|
:clj-kondo-config {:level :error}
|
2023-09-14 14:28:43 +00:00
|
|
|
:cond-else {:level :error}
|
|
|
|
:consistent-alias {:level :error
|
|
|
|
:aliases {clojure.string string
|
|
|
|
clojure.set set
|
|
|
|
clojure.walk walk
|
|
|
|
taoensso.timbre log}}
|
2023-10-05 18:50:57 +00:00
|
|
|
:deprecated-namespace {:level :warning}
|
2023-09-14 14:28:43 +00:00
|
|
|
:docstring-blank {:level :error}
|
2023-10-05 18:50:57 +00:00
|
|
|
:equals-true {:level :error}
|
2023-09-14 14:28:43 +00:00
|
|
|
:inline-def {:level :error}
|
|
|
|
:invalid-arity {:skip-args [status-im.utils.fx/defn utils.re-frame/defn]}
|
|
|
|
:loop-without-recur {:level :error}
|
2023-10-05 18:50:57 +00:00
|
|
|
:minus-one {:level :error}
|
2023-09-14 14:28:43 +00:00
|
|
|
:misplaced-docstring {:level :error}
|
|
|
|
:missing-body-in-when {:level :error}
|
|
|
|
:missing-clause-in-try {:level :error}
|
|
|
|
:missing-else-branch {:level :error}
|
|
|
|
:not-empty? {:level :error}
|
2023-10-05 18:50:57 +00:00
|
|
|
:plus-one {:level :error}
|
2023-09-14 14:28:43 +00:00
|
|
|
:redundant-do {:level :error}
|
|
|
|
:redundant-let {:level :error}
|
|
|
|
:refer-all {:level :error}
|
|
|
|
:shadowed-var {:level :error
|
|
|
|
;; We temporarily use :include to define an
|
|
|
|
;; allowlist of core Clojure vars. In the
|
|
|
|
;; future, as we progressively fix shadowed
|
|
|
|
;; vars, we should be able to delete this
|
|
|
|
;; option and lint all vars.
|
|
|
|
:exclude [type name]}
|
|
|
|
:single-operand-comparison {:level :error}
|
|
|
|
:syntax {:level :error}
|
|
|
|
:unbound-destructuring-default {:level :error}
|
2023-10-16 22:03:18 +00:00
|
|
|
:uninitialized-var {:level :error}
|
2023-09-14 14:28:43 +00:00
|
|
|
:unknown-require-option {:level :error}
|
|
|
|
:unreachable-code {:level :error}
|
|
|
|
:unresolved-namespace {:level :error}
|
2022-12-20 13:42:50 +00:00
|
|
|
;; TODO remove number when this is fixed
|
|
|
|
;; https://github.com/borkdude/clj-kondo/issues/867
|
2023-09-14 14:28:43 +00:00
|
|
|
:unresolved-symbol {:exclude [PersistentPriorityMap.EMPTY
|
|
|
|
number
|
|
|
|
status-im.test-helpers/restore-app-db]}
|
|
|
|
:unresolved-var {:level :error}
|
2023-10-16 22:03:18 +00:00
|
|
|
:unsorted-required-namespaces {:level :error}
|
2023-10-05 18:50:57 +00:00
|
|
|
:unused-alias {:level :warning}
|
2023-09-14 14:28:43 +00:00
|
|
|
:unused-binding {:level :error}
|
|
|
|
:unused-import {:level :error}
|
|
|
|
:unused-namespace {:level :error}
|
|
|
|
:unused-private-var {:level :error}
|
|
|
|
:unused-referred-var {:level :error}
|
|
|
|
:use {:level :error}}
|
2022-12-20 13:42:50 +00:00
|
|
|
:config-in-ns {mocks.js-dependencies {:linters {:clojure-lsp/unused-public-var {:level :off}}}}}
|