Skip to content

Commit 92d7390

Browse files
improve pana analyzing to only scan published packages
1 parent 83f0608 commit 92d7390

File tree

3 files changed

+22
-41
lines changed

3 files changed

+22
-41
lines changed

.github/workflows/packages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Check publish score
3434
run: |
3535
flutter pub global activate pana
36-
./.github/workflows/scripts/run-pana.sh
36+
melos analyze:packages:pana --no-select
3737
3838
test:
3939
runs-on: ubuntu-latest

.github/workflows/scripts/run-pana.sh

Lines changed: 0 additions & 25 deletions
This file was deleted.

melos.yaml

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,19 @@ ide:
1111
scripts:
1212
prepare: melos bootstrap && melos compile:webworker && melos update:wasm
1313

14-
format:
15-
description: Format Dart code.
16-
run: dart format .
17-
18-
format:check:packages:
19-
description: Check formatting of Dart code in packages.
20-
run: dart format --output none --set-exit-if-changed packages
21-
22-
format:check:demos:
23-
description: Check formatting of Dart code in demos.
24-
run: dart format --output none --set-exit-if-changed demos
14+
analyze:demos:
15+
description: Analyze Dart code in demos.
16+
run: dart analyze demos --fatal-infos
2517

2618
analyze:packages:
2719
description: Analyze Dart code in packages.
2820
run: dart analyze packages --fatal-infos
2921

30-
analyze:demos:
31-
description: Analyze Dart code in demos.
32-
run: dart analyze demos --fatal-infos
22+
analyze:packages:pana:
23+
description: Analyze Dart packages with Pana
24+
exec: flutter pub global run pana --no-warning --exit-code-threshold 10
25+
packageFilters:
26+
noPrivate: true
3327

3428
compile:webworker:
3529
description: Compile Javascript web worker distributable
@@ -38,7 +32,17 @@ scripts:
3832
scope:
3933
- powersync_web_worker
4034

41-
update:wasm: dart run scripts/init_sqlite_wasm.dart
35+
format:
36+
description: Format Dart code.
37+
run: dart format .
38+
39+
format:check:demos:
40+
description: Check formatting of Dart code in demos.
41+
run: dart format --output none --set-exit-if-changed demos
42+
43+
format:check:packages:
44+
description: Check formatting of Dart code in packages.
45+
run: dart format --output none --set-exit-if-changed packages
4246

4347
test:
4448
description: Run tests in a specific package.
@@ -52,3 +56,5 @@ scripts:
5256
# as they could change the behaviour of how tests filter packages.
5357
env:
5458
MELOS_TEST: true
59+
60+
update:wasm: dart run scripts/init_sqlite_wasm.dart

0 commit comments

Comments
 (0)