Skip to content

Commit f3ed727

Browse files
authored
Configure Flutter analyze to only fail on errors, not warnings
Configure Flutter analyze to only fail on errors, not warnings
2 parents c2ea21a + d729dd5 commit f3ed727

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
- name: Run Flutter analyze
5959
run: |
6060
echo "Running Flutter analyze to catch compilation errors early..."
61-
flutter analyze
61+
flutter analyze --no-fatal-warnings --no-fatal-infos
6262
echo "Analysis completed successfully!"
6363
6464
- name: Run tests

lib/services/mirror_fetcher.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class MirrorFetcherService {
5757
}
5858
}
5959
},
60-
onLoadError: (controller, url, code, message) {
60+
onReceivedError: (controller, request, error) {
6161
// Load error, complete with empty list
6262
if (!completer.isCompleted) {
6363
completer.complete([]);

lib/ui/book_info_page.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import 'package:openlib/ui/components/book_info_widget.dart';
2020
import 'package:openlib/ui/components/error_widget.dart';
2121
import 'package:openlib/ui/components/file_buttons_widget.dart';
2222
import 'package:openlib/ui/components/snack_bar_widget.dart';
23-
import 'package:openlib/ui/webview_page.dart';
2423

2524
import 'package:openlib/state/state.dart'
2625
show

0 commit comments

Comments
 (0)