Skip to content

Commit

Permalink
Fix CI/CD analyzer crashes (#1033)
Browse files Browse the repository at this point in the history
* remove explicit WidgetBuilder type

* ignore

* Revert "ignore"

This reverts commit 5431c0b.

* Revert "remove explicit WidgetBuilder type"

This reverts commit 3aff2cc.

* upd. flutter_lints

* remove lib name

* Revert "remove lib name"

This reverts commit 78a9a25.

* ignore warning

* fix unused_element

---------

Co-authored-by: Sergey Molchanovsky <[email protected]>
  • Loading branch information
subzero911 and Sergey Molchanovsky authored Dec 16, 2024
1 parent 1f40380 commit 7dec21a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions flutter_mobx/lib/flutter_mobx.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
/// );
///
// ignore: unnecessary_library_name
library flutter_mobx;

export 'package:flutter_mobx/src/multi_reaction_builder.dart';
Expand Down
4 changes: 2 additions & 2 deletions flutter_mobx/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ homepage: https://mobx.netlify.app
topics:
- reactive-programming
- state-management
- ui
- user-interface

environment:
sdk: ">=3.0.0 <4.0.0"
Expand All @@ -24,7 +24,7 @@ dependencies:

dev_dependencies:
build_runner: ^2.4.9
flutter_lints: ^4.0.0
flutter_lints: ^5.0.0
flutter_test:
sdk: flutter
mocktail: ^1.0.3
2 changes: 2 additions & 0 deletions mobx_codegen/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
include: package:lints/recommended.yaml

analyzer:
errors:
unused_element: ignore
exclude:
- test/data/**.dart
- test/*.g.dart
1 change: 0 additions & 1 deletion mobx_codegen/test/generator_usage_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ class TestStore = _TestStore with _$TestStore;
bool customEquals(String? oldValue, String? newValue) => oldValue != newValue;

abstract class _TestStore with Store {
// ignore: unused_element
_TestStore(this.field1, {this.field2});

@observable
Expand Down
2 changes: 1 addition & 1 deletion mobx_examples/lib/todos/todo_widgets.dart
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class ActionBar extends StatelessWidget {
},
),
Observer(
builder: (_) => ButtonBar(
builder: (_) => OverflowBar(
children: <Widget>[
ElevatedButton(
onPressed: list.canRemoveAllCompleted
Expand Down

0 comments on commit 7dec21a

Please sign in to comment.