Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Lint Flutter Rust bridge features

Manav Rathi585708db4500
diff --git a/.github/workflows/locker-lint.yml b/.github/workflows/locker-lint.yml
index d096f6478a..5b222cd389 100644
--- a/.github/workflows/locker-lint.yml
+++ b/.github/workflows/locker-lint.yml
@@ -50,7 +50,7 @@ jobs:
- run: cargo codegen frb
working-directory: rust
- - run: cargo check -p ente_rust --features flutter --locked
+ - run: cargo clippy -p ente_rust --features flutter --all-targets --locked -- -D warnings
working-directory: rust
- name: Generate strings localizations
diff --git a/.github/workflows/mobile-lint.yml b/.github/workflows/mobile-lint.yml
index e6a4fcbc28..c7d35c1352 100644
--- a/.github/workflows/mobile-lint.yml
+++ b/.github/workflows/mobile-lint.yml
@@ -53,7 +53,7 @@ jobs:
- run: cargo codegen frb
working-directory: rust
- - run: cargo check -p ente_photos_rust --features flutter --locked
+ - run: cargo clippy -p ente_photos_rust --features flutter --all-targets --locked -- -D warnings
working-directory: rust
- run: flutter analyze --no-fatal-infos
diff --git a/.github/workflows/mobile-packages-lint.yml b/.github/workflows/mobile-packages-lint.yml
index 226e5f21b3..07a0554011 100644
--- a/.github/workflows/mobile-packages-lint.yml
+++ b/.github/workflows/mobile-packages-lint.yml
@@ -97,7 +97,7 @@ jobs:
- run: cargo codegen frb
working-directory: rust
- - run: cargo check -p ente_rust --features flutter --locked
+ - run: cargo clippy -p ente_rust --features flutter --all-targets --locked -- -D warnings
working-directory: rust
- name: Generate strings localizations
@@ -232,11 +232,11 @@ jobs:
working-directory: rust
- if: needs.detect-changes.outputs.lint_photos == 'true'
- run: cargo check -p ente_photos_rust --features flutter --locked
+ run: cargo clippy -p ente_photos_rust --features flutter --all-targets --locked -- -D warnings
working-directory: rust
- if: needs.detect-changes.outputs.lint_locker == 'true'
- run: cargo check -p ente_rust --features flutter --locked
+ run: cargo clippy -p ente_rust --features flutter --all-targets --locked -- -D warnings
working-directory: rust
- name: Generate strings localizations