mirror of
https://github.com/status-im/status-react.git
synced 2025-01-09 10:42:53 +00:00
7acaff6167
* chore_: use status.go v2 endpoint
39511298...e255fb8b
* feat: use status backend server (#21550)
* chore: add env variable STATUS_BACKEND_SERVER_IMAGE_SERVER_URI_PREFIX
* update doc
* fix_: image_server lint issue
* chore_: update status-go version
30 lines
996 B
Bash
Executable File
30 lines
996 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
INVALID_CHANGES=$(grep -E -r '(/atom|re-frame/dispatch|rf/dispatch|re-frame/subscribe|rf/subscribe|rf/sub|<sub|>evt|status-im\.)' --include '*.cljs' --include '*.clj' './src/quo')
|
|
|
|
if test -n "$INVALID_CHANGES"; then
|
|
echo "WARNING: re-frame, status-im, reagent atoms are not allowed in quo components"
|
|
echo ''
|
|
echo "$INVALID_CHANGES"
|
|
exit 1
|
|
fi
|
|
|
|
# Add exception for status-im.config in the utils package check
|
|
INVALID_CHANGES2=$(grep -E -r '(status-im\.)' --include '*.cljs' --include '*.clj' './src/utils' | grep -v 'status-im.config')
|
|
|
|
if test -n "$INVALID_CHANGES2"; then
|
|
echo "WARNING: status-im are not allowed in utils package"
|
|
echo ''
|
|
echo "$INVALID_CHANGES2"
|
|
exit 1
|
|
fi
|
|
|
|
INVALID_CHANGES3=$(grep -E -r '(status-im\.)' --include '*.cljs' --include '*.clj' './src/react_native')
|
|
|
|
if test -n "$INVALID_CHANGES3"; then
|
|
echo "WARNING: status-im are not allowed in react-native package"
|
|
echo ''
|
|
echo "$INVALID_CHANGES3"
|
|
exit 1
|
|
fi
|