feat(repo): add dart_code_metrics

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2021-10-01 16:44:19 +05:30
committed by xsahil03x
parent 62714e375d
commit 6e48f9754d
7 changed files with 67 additions and 8 deletions
+18 -3
View File
@@ -11,6 +11,10 @@ scripts:
run: melos run analyze && melos run format
description: Run all static analysis checks
analyze:all:
run: melos run analyze && melos run metrics
description: Run all
analyze:
run: |
melos exec -c 5 --ignore="*example*" -- \
@@ -24,6 +28,14 @@ scripts:
description: |
Run `flutter format --set-exit-if-changed .` in all packages.
metrics:
run: |
melos exec -c 1 --ignore="*example*" -- \
flutter pub run dart_code_metrics:metrics analyze lib
description: |
Run `dart_code_metrics` in all packages.
- Note: you can also rely on your IDEs Dart Analysis / Issues window.
lint:pub:
run: |
melos exec -c 5 --no-private --ignore="*example*" -- \
@@ -71,10 +83,13 @@ scripts:
docs:
run: |
npm install -g https://github.com/GetStream/stream-chat-docusaurus-cli &&
npx stream-chat-docusaurus -i -s
npm install -g https://github.com/GetStream/stream-chat-docusaurus-cli &&
npx stream-chat-docusaurus -i -s
description: Runs the docusaurus documentation locally.
dev_dependencies:
dart_code_metrics: ^4.2.0-dev.1
environment:
sdk: '>=2.12.0 <3.0.0'
flutter: '>=1.22.4 <2.0.0'
flutter: '>=1.17.0 <2.0.0'