Skip to content

Commit ddb51a7

Browse files
committed
add dart format check for format scripts
1 parent 7af6680 commit ddb51a7

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
- name: Static Analysis
2323
run: flutter analyze
2424

25-
- name: Ensure the Dart code is formatted correctly
26-
run: dart format --set-exit-if-changed --output=none .
25+
- name: Check formatting (dart,java,c)
26+
run: dart run rps format-check
2727

2828
- name: Run Flutter unit tests
2929
run: dart run rps test

analysis_options.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
analyzer:
2+
exclude:
3+
- test/dlcov_references_test.dart

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ homepage: https://github.com/OneSignal/OneSignal-Flutter-SDK
77
# E.g.`rps test` to run tests
88
scripts:
99
test: flutter test --coverage && dart run dlcov -c 95 --log=0 --include-untested-files=true
10-
format-check: android/gradlew spotlessCheck
11-
format: android/gradlew spotlessApply
10+
format-check: dart format --set-exit-if-changed --output=none . && android/gradlew spotlessCheck
11+
format: dart format . && android/gradlew spotlessApply
1212

1313
flutter:
1414
plugin:

0 commit comments

Comments
 (0)