From 37be7a4977d75342954411d70c90d3f279dcf12b Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Wed, 27 Apr 2022 08:00:05 +0200 Subject: [PATCH] chore: update check-format.sh to reformat all apps --- scripts/check-format.sh | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/scripts/check-format.sh b/scripts/check-format.sh index d97863eec..66165833f 100755 --- a/scripts/check-format.sh +++ b/scripts/check-format.sh @@ -7,19 +7,8 @@ set -euo pipefail cd -P -- "$(dirname -- "$0")/.." -APPS=() -APPS+=( 'apps/emqx' 'apps/emqx_modules' 'apps/emqx_gateway') -APPS+=( 'apps/emqx_authn' 'apps/emqx_authz' ) -APPS+=( 'lib-ee/emqx_enterprise_conf' 'lib-ee/emqx_license' ) -APPS+=( 'apps/emqx_exhook') -APPS+=( 'apps/emqx_retainer' 'apps/emqx_slow_subs') -APPS+=( 'apps/emqx_management') -APPS+=( 'apps/emqx_psk') -APPS+=( 'apps/emqx_plugin_libs' 'apps/emqx_machine' 'apps/emqx_statsd' ) -APPS+=( 'apps/emqx_auto_subscribe' 'apps/emqx_conf') -APPS+=( 'apps/emqx_dashboard') - -for app in "${APPS[@]}"; do +APPS="$(./scripts/find-apps.sh | xargs)" +for app in ${APPS}; do echo "$app ..." ./scripts/format_app.py -a "$app" -f done