From 7639f0c08e3bb2156d212fa5995ca69a25e70598 Mon Sep 17 00:00:00 2001 From: Julian Bissekkou Date: Tue, 16 Jan 2024 16:05:57 +0100 Subject: [PATCH 1/2] fix format pipeline --- .github/workflows/check.yml | 2 +- analysis_options.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 4d64f1d..5eede3a 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -40,4 +40,4 @@ jobs: - name: Get all dependencies run: flutter pub get - name: Check formatting - run: find . -name "*.dart" ! -name "*.g.dart" ! -name "*.freezed.dart" ! -path '*/generated/*' ! -path '*/gen/*' | xargs flutter format -n --set-exit-if-changed + run: find . -name "*.dart" ! -name "*.g.dart" ! -name "*.freezed.dart" ! -path '*/generated/*' ! -path '*/gen/*' | xargs dart format -n --set-exit-if-changed diff --git a/analysis_options.yaml b/analysis_options.yaml index a8b8c42..8a149a2 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -1 +1 @@ -include: package:tapped_lints/flutter.yaml +include: package:tapped_lints/flutter-3.10.yaml From 3ea59f4c747bd1a44ce8c504c2e5adcb5db4951e Mon Sep 17 00:00:00 2001 From: Julian Bissekkou Date: Tue, 16 Jan 2024 16:07:36 +0100 Subject: [PATCH 2/2] update format command --- .github/workflows/check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 5eede3a..3010749 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -40,4 +40,4 @@ jobs: - name: Get all dependencies run: flutter pub get - name: Check formatting - run: find . -name "*.dart" ! -name "*.g.dart" ! -name "*.freezed.dart" ! -path '*/generated/*' ! -path '*/gen/*' | xargs dart format -n --set-exit-if-changed + run: dart format -o none --set-exit-if-changed $(find . -name '*.dart' ! -name '*.g.dart' ! -name '*.freezed.dart' ! -path '*/generated/*' ! -path '*/gen/*')