Skip to content

Commit

Permalink
Fix lint-old-quo-usage script and usage
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayesivan committed Sep 25, 2023
1 parent aa405c6 commit f759236
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ endef
lint: export TARGET := clojure
lint: ##@test Run code style checks
@sh scripts/lint-re-frame-in-quo-components.sh && \
sh scripts/lint-old-quo-usage.sh && \
sh scripts/lint-old-quo-usage.sh \
clj-kondo --config .clj-kondo/config.edn --cache false --fail-level error --lint src && \
ALL_CLOJURE_FILES=$(call find_all_clojure_files) && \
zprint '{:search-config? true}' -sfc $$ALL_CLOJURE_FILES && \
Expand Down
4 changes: 3 additions & 1 deletion scripts/lint-old-quo-usage.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env sh

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

QUO_USAGES=$(grep -r -E '\[quo\.[^ ]* :as' --include '*.cljs' --include '*.clj' './src/status_im2' || true)

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

Expand Down

0 comments on commit f759236

Please sign in to comment.