Skip to content

armgit / ente

Public Imported from GitHub
0

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

Migrate auth to flutter_lints

Manav Rathi70285959e9c9
diff --git a/mobile/apps/auth/analysis_options.yaml b/mobile/apps/auth/analysis_options.yaml
index 9da50b29c9..5d62c4e8c1 100644
--- a/mobile/apps/auth/analysis_options.yaml
+++ b/mobile/apps/auth/analysis_options.yaml
@@ -2,7 +2,7 @@
# or https://pub.dev/packages/lint (Effective dart)
# use "flutter analyze ." or "dart analyze ." for running lint checks
-include: package:lints/recommended.yaml
+include: package:flutter_lints/flutter.yaml
linter:
rules:
# Ref https://github.com/flutter/packages/blob/master/packages/flutter_lints/lib/flutter.yaml
@@ -49,6 +49,7 @@ analyzer:
unawaited_futures: warning # convert to warning after fixing existing issues
avoid_renaming_method_parameters: ignore # incorrect warnings for `equals` overrides
+ use_build_context_synchronously: ignore # experimental lint, requires many changes
strict_top_level_inference: ignore # deferred: surfaces latent nullable-return mismatches needing per-site fixes
exclude:
diff --git a/mobile/apps/auth/lib/ui/home_page.dart b/mobile/apps/auth/lib/ui/home_page.dart
index 4ec94fe2cf..a81568668a 100644
--- a/mobile/apps/auth/lib/ui/home_page.dart
+++ b/mobile/apps/auth/lib/ui/home_page.dart
@@ -2325,9 +2325,9 @@ class _HomePageState extends State<HomePage> {
if (PlatformDetector.isDesktop()) {
return FloatingActionButton(
onPressed: () => _redirectToManualEntryPage(),
- child: const Icon(Icons.add),
elevation: 8.0,
shape: const CircleBorder(),
+ child: const Icon(Icons.add),
);
}
return SpeedDial(
diff --git a/mobile/apps/auth/pubspec.lock b/mobile/apps/auth/pubspec.lock
index 84f26d3714..0b4df97d34 100644
--- a/mobile/apps/auth/pubspec.lock
+++ b/mobile/apps/auth/pubspec.lock
@@ -528,6 +528,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.14.4"
+ flutter_lints:
+ dependency: "direct dev"
+ description:
+ name: flutter_lints
+ sha256: "3105dc8492f6183fb076ccf1f351ac3d60564bff92e20bfc4af9cc1651f4e7e1"
+ url: "https://pub.dev"
+ source: hosted
+ version: "6.0.0"
flutter_local_notifications:
dependency: "direct main"
description:
@@ -856,7 +864,7 @@ packages:
source: hosted
version: "3.0.2"
lints:
- dependency: "direct dev"
+ dependency: transitive
description:
name: lints
sha256: "12f842a479589fea194fe5c5a3095abc7be0c1f2ddfa9a0e76aed1dbd26a87df"
diff --git a/mobile/apps/auth/pubspec.yaml b/mobile/apps/auth/pubspec.yaml
index e61bd4ec5d..59f7240200 100644
--- a/mobile/apps/auth/pubspec.yaml
+++ b/mobile/apps/auth/pubspec.yaml
@@ -136,9 +136,9 @@ dependencies:
xdg_directories: 1.1.0
dev_dependencies:
+ flutter_lints: 6.0.0
flutter_test:
sdk: flutter
- lints: 6.1.0
shared_preferences_platform_interface: 2.4.2
# The following section is specific to Flutter.