Skip to content

Commit 3f02515

Browse files
committed
Fix lint-old-quo-usage script and usage
1 parent a4a3d62 commit 3f02515

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ endef
311311
lint: export TARGET := clojure
312312
lint: ##@test Run code style checks
313313
@sh scripts/lint-re-frame-in-quo-components.sh && \
314-
sh scripts/lint-old-quo-usage.sh && \
314+
sh scripts/lint-old-quo-usage.sh \
315315
clj-kondo --config .clj-kondo/config.edn --cache false --fail-level error --lint src && \
316316
ALL_CLOJURE_FILES=$(call find_all_clojure_files) && \
317317
zprint '{:search-config? true}' -sfc $$ALL_CLOJURE_FILES && \

scripts/lint-old-quo-usage.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/usr/bin/env sh
22

3-
QUO_USAGES=$(grep -r -E '\[quo\.[^ ]* :as' --include '*.cljs' --include '*.clj' './src/status_im2')
3+
set -euo pipefail
4+
5+
QUO_USAGES=$(grep -r -E '\[quo\.[^ ]* :as' --include '*.cljs' --include '*.clj' './src/status_im2' || true)
46

57
echo -e "\nChecking 'status_im2' namespace for 'quo' namespace usage."
68

0 commit comments

Comments
 (0)