Fix: add back missing clj-kondo config files (#18472)
Fix our issues with auto-generated clj-kondo config files. - To be extra precise, we now exclude ".clj-kondo/*" from being processed by clojure-lsp clean-ns. - Formatted the .zprintrc file. Fixes https://github.com/status-im/status-mobile/issues/17947
This commit is contained in:
parent
7e2c7abf30
commit
a14e228e3a
18
.zprintrc
18
.zprintrc
|
@ -1,8 +1,10 @@
|
||||||
;; -*- mode: clojure -*-
|
;; -*- mode: clojure -*-
|
||||||
;; vi: ft=clojure
|
;; vi: ft=clojure
|
||||||
{:width 105
|
{:width 105
|
||||||
:style [;; community style
|
:remove {:fn-force-nl #{:noarg1-body}}
|
||||||
;; https://github.com/kkinnear/zprint/blob/main/doc/reference.md#community
|
|
||||||
|
:style
|
||||||
|
[;; community style https://github.com/kkinnear/zprint/blob/main/doc/reference.md#community
|
||||||
:community
|
:community
|
||||||
|
|
||||||
;; no comma in map
|
;; no comma in map
|
||||||
|
@ -10,17 +12,15 @@
|
||||||
|
|
||||||
:custom-justify
|
:custom-justify
|
||||||
|
|
||||||
;; respect all newlines
|
;; respect all newlines https://github.com/kkinnear/zprint/blob/main/doc/reference.md#respect-nl
|
||||||
;; https://github.com/kkinnear/zprint/blob/main/doc/reference.md#respect-nl
|
|
||||||
:respect-nl
|
:respect-nl
|
||||||
|
|
||||||
;; respect blank line
|
;; respect blank line https://github.com/kkinnear/zprint/blob/main/doc/reference.md#respect-bl
|
||||||
;; https://github.com/kkinnear/zprint/blob/main/doc/reference.md#respect-bl
|
|
||||||
:respect-bl
|
:respect-bl
|
||||||
|
|
||||||
;; hang multiline left-hand-thing
|
;; hang multiline left-hand-thing https://github.com/kkinnear/zprint/issues/273
|
||||||
;; https://github.com/kkinnear/zprint/issues/273
|
|
||||||
:multi-lhs-hang]
|
:multi-lhs-hang]
|
||||||
|
|
||||||
:fn-map
|
:fn-map
|
||||||
{"reg-sub" :arg1-pair
|
{"reg-sub" :arg1-pair
|
||||||
"h/describe" :arg1-body
|
"h/describe" :arg1-body
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
"assoc-some" "assoc"
|
"assoc-some" "assoc"
|
||||||
"conj-when" "conj"
|
"conj-when" "conj"
|
||||||
"conj-some" "conj"}
|
"conj-some" "conj"}
|
||||||
:remove {:fn-force-nl #{:noarg1-body}}
|
|
||||||
:style-map
|
:style-map
|
||||||
{:no-comma {:map {:comma? false}}
|
{:no-comma {:map {:comma? false}}
|
||||||
:custom-justify
|
:custom-justify
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -329,7 +329,7 @@ lint-fix: ##@test Run code style checks and fix issues
|
||||||
ALL_CLOJURE_FILES=$(call find_all_clojure_files) && \
|
ALL_CLOJURE_FILES=$(call find_all_clojure_files) && \
|
||||||
zprint '{:search-config? true}' -sw $$ALL_CLOJURE_FILES && \
|
zprint '{:search-config? true}' -sw $$ALL_CLOJURE_FILES && \
|
||||||
zprint '{:search-config? true}' -sw $$ALL_CLOJURE_FILES && \
|
zprint '{:search-config? true}' -sw $$ALL_CLOJURE_FILES && \
|
||||||
clojure-lsp --ns-exclude-regex ".*/src/status_im/core\.cljs|.*/src/test_helpers/component_tests_preload\.cljs$$" clean-ns && \
|
clojure-lsp --ns-exclude-regex ".*/\.clj-kondo/.*|.*/src/status_im/core\.cljs|.*/src/test_helpers/component_tests_preload\.cljs$$" clean-ns && \
|
||||||
sh scripts/lint/trailing-newline.sh --fix && \
|
sh scripts/lint/trailing-newline.sh --fix && \
|
||||||
node_modules/.bin/prettier --write .
|
node_modules/.bin/prettier --write .
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue