From e18faa6ada201ad9e5096fe2ad59dddd3251a51d Mon Sep 17 00:00:00 2001 From: jld3103 Date: Mon, 25 Jul 2022 18:44:17 +0200 Subject: [PATCH] Analyze infos as fatal in CI --- .github/workflows/dart.yml | 42 ++++++++++----------- packages/file_icons/mono_pkg.yaml | 2 +- packages/neon/mono_pkg.yaml | 2 +- packages/nextcloud/mono_pkg.yaml | 2 +- packages/nextcloud_push_proxy/mono_pkg.yaml | 2 +- packages/settings/mono_pkg.yaml | 2 +- packages/sort_box/mono_pkg.yaml | 2 +- packages/spec_templates/mono_pkg.yaml | 2 +- tool/ci.sh | 8 ++-- 9 files changed, 32 insertions(+), 32 deletions(-) diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index da2fab15..feab5251 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -245,7 +245,7 @@ jobs: needs: - job_001 job_009: - name: "analyze; PKG: packages/file_icons; `flutter analyze`" + name: "analyze; PKG: packages/file_icons; `flutter analyze --fatal-infos .`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies @@ -268,14 +268,14 @@ jobs: if: "always() && steps.checkout.conclusion == 'success'" working-directory: packages/file_icons run: flutter pub pub upgrade - - name: packages/file_icons; flutter analyze + - name: "packages/file_icons; flutter analyze --fatal-infos ." if: "always() && steps.packages_file_icons_pub_upgrade.conclusion == 'success'" working-directory: packages/file_icons - run: flutter analyze + run: flutter analyze --fatal-infos . needs: - job_001 job_010: - name: "analyze; PKG: packages/neon; `flutter analyze`" + name: "analyze; PKG: packages/neon; `flutter analyze --fatal-infos .`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies @@ -298,14 +298,14 @@ jobs: if: "always() && steps.checkout.conclusion == 'success'" working-directory: packages/neon run: flutter pub pub upgrade - - name: packages/neon; flutter analyze + - name: "packages/neon; flutter analyze --fatal-infos ." if: "always() && steps.packages_neon_pub_upgrade.conclusion == 'success'" working-directory: packages/neon - run: flutter analyze + run: flutter analyze --fatal-infos . needs: - job_001 job_011: - name: "analyze; PKG: packages/settings; `flutter analyze`" + name: "analyze; PKG: packages/settings; `flutter analyze --fatal-infos .`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies @@ -328,14 +328,14 @@ jobs: if: "always() && steps.checkout.conclusion == 'success'" working-directory: packages/settings run: flutter pub pub upgrade - - name: packages/settings; flutter analyze + - name: "packages/settings; flutter analyze --fatal-infos ." if: "always() && steps.packages_settings_pub_upgrade.conclusion == 'success'" working-directory: packages/settings - run: flutter analyze + run: flutter analyze --fatal-infos . needs: - job_001 job_012: - name: "analyze; PKG: packages/nextcloud; `dart analyze`" + name: "analyze; PKG: packages/nextcloud; `dart analyze --fatal-infos .`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies @@ -358,14 +358,14 @@ jobs: if: "always() && steps.checkout.conclusion == 'success'" working-directory: packages/nextcloud run: dart pub upgrade - - name: packages/nextcloud; dart analyze + - name: "packages/nextcloud; dart analyze --fatal-infos ." if: "always() && steps.packages_nextcloud_pub_upgrade.conclusion == 'success'" working-directory: packages/nextcloud - run: dart analyze + run: dart analyze --fatal-infos . needs: - job_001 job_013: - name: "analyze; PKG: packages/nextcloud_push_proxy; `dart analyze`" + name: "analyze; PKG: packages/nextcloud_push_proxy; `dart analyze --fatal-infos .`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies @@ -388,14 +388,14 @@ jobs: if: "always() && steps.checkout.conclusion == 'success'" working-directory: packages/nextcloud_push_proxy run: dart pub upgrade - - name: packages/nextcloud_push_proxy; dart analyze + - name: "packages/nextcloud_push_proxy; dart analyze --fatal-infos ." if: "always() && steps.packages_nextcloud_push_proxy_pub_upgrade.conclusion == 'success'" working-directory: packages/nextcloud_push_proxy - run: dart analyze + run: dart analyze --fatal-infos . needs: - job_001 job_014: - name: "analyze; PKG: packages/sort_box; `dart analyze`" + name: "analyze; PKG: packages/sort_box; `dart analyze --fatal-infos .`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies @@ -418,14 +418,14 @@ jobs: if: "always() && steps.checkout.conclusion == 'success'" working-directory: packages/sort_box run: dart pub upgrade - - name: packages/sort_box; dart analyze + - name: "packages/sort_box; dart analyze --fatal-infos ." if: "always() && steps.packages_sort_box_pub_upgrade.conclusion == 'success'" working-directory: packages/sort_box - run: dart analyze + run: dart analyze --fatal-infos . needs: - job_001 job_015: - name: "analyze; PKG: packages/spec_templates; `dart analyze`" + name: "analyze; PKG: packages/spec_templates; `dart analyze --fatal-infos .`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies @@ -448,10 +448,10 @@ jobs: if: "always() && steps.checkout.conclusion == 'success'" working-directory: packages/spec_templates run: dart pub upgrade - - name: packages/spec_templates; dart analyze + - name: "packages/spec_templates; dart analyze --fatal-infos ." if: "always() && steps.packages_spec_templates_pub_upgrade.conclusion == 'success'" working-directory: packages/spec_templates - run: dart analyze + run: dart analyze --fatal-infos . needs: - job_001 job_016: diff --git a/packages/file_icons/mono_pkg.yaml b/packages/file_icons/mono_pkg.yaml index e3d1d89c..092827e8 100644 --- a/packages/file_icons/mono_pkg.yaml +++ b/packages/file_icons/mono_pkg.yaml @@ -3,5 +3,5 @@ sdk: stages: - analyze: - - analyze + - analyze: --fatal-infos . - format: --output=none --set-exit-if-changed --line-length 120 . diff --git a/packages/neon/mono_pkg.yaml b/packages/neon/mono_pkg.yaml index e3d1d89c..092827e8 100644 --- a/packages/neon/mono_pkg.yaml +++ b/packages/neon/mono_pkg.yaml @@ -3,5 +3,5 @@ sdk: stages: - analyze: - - analyze + - analyze: --fatal-infos . - format: --output=none --set-exit-if-changed --line-length 120 . diff --git a/packages/nextcloud/mono_pkg.yaml b/packages/nextcloud/mono_pkg.yaml index a23ba167..39ceb541 100644 --- a/packages/nextcloud/mono_pkg.yaml +++ b/packages/nextcloud/mono_pkg.yaml @@ -3,7 +3,7 @@ sdk: stages: - analyze: - - analyze + - analyze: --fatal-infos . - format: --output=none --set-exit-if-changed --line-length 120 . - unit_test: - test diff --git a/packages/nextcloud_push_proxy/mono_pkg.yaml b/packages/nextcloud_push_proxy/mono_pkg.yaml index e3d1d89c..092827e8 100644 --- a/packages/nextcloud_push_proxy/mono_pkg.yaml +++ b/packages/nextcloud_push_proxy/mono_pkg.yaml @@ -3,5 +3,5 @@ sdk: stages: - analyze: - - analyze + - analyze: --fatal-infos . - format: --output=none --set-exit-if-changed --line-length 120 . diff --git a/packages/settings/mono_pkg.yaml b/packages/settings/mono_pkg.yaml index e3d1d89c..092827e8 100644 --- a/packages/settings/mono_pkg.yaml +++ b/packages/settings/mono_pkg.yaml @@ -3,5 +3,5 @@ sdk: stages: - analyze: - - analyze + - analyze: --fatal-infos . - format: --output=none --set-exit-if-changed --line-length 120 . diff --git a/packages/sort_box/mono_pkg.yaml b/packages/sort_box/mono_pkg.yaml index a23ba167..39ceb541 100644 --- a/packages/sort_box/mono_pkg.yaml +++ b/packages/sort_box/mono_pkg.yaml @@ -3,7 +3,7 @@ sdk: stages: - analyze: - - analyze + - analyze: --fatal-infos . - format: --output=none --set-exit-if-changed --line-length 120 . - unit_test: - test diff --git a/packages/spec_templates/mono_pkg.yaml b/packages/spec_templates/mono_pkg.yaml index e3d1d89c..092827e8 100644 --- a/packages/spec_templates/mono_pkg.yaml +++ b/packages/spec_templates/mono_pkg.yaml @@ -3,5 +3,5 @@ sdk: stages: - analyze: - - analyze + - analyze: --fatal-infos . - format: --output=none --set-exit-if-changed --line-length 120 . diff --git a/tool/ci.sh b/tool/ci.sh index 3e1dac4c..44a3e64b 100755 --- a/tool/ci.sh +++ b/tool/ci.sh @@ -68,12 +68,12 @@ for PKG in ${PKGS}; do echo -e "\033[1mPKG: ${PKG}; TASK: ${TASK}\033[22m" case ${TASK} in analyze_0) - echo 'flutter analyze' - flutter analyze || EXIT_CODE=$? + echo 'flutter analyze --fatal-infos .' + flutter analyze --fatal-infos . || EXIT_CODE=$? ;; analyze_1) - echo 'dart analyze' - dart analyze || EXIT_CODE=$? + echo 'dart analyze --fatal-infos .' + dart analyze --fatal-infos . || EXIT_CODE=$? ;; format) echo 'dart format --output=none --set-exit-if-changed --line-length 120 .'