diff --git a/.fvm/fvm_config.json b/.fvm/fvm_config.json new file mode 100644 index 0000000..ccdae4d --- /dev/null +++ b/.fvm/fvm_config.json @@ -0,0 +1,4 @@ +{ + "flutterSdkVersion": "3.19.0", + "flavors": {} +} \ No newline at end of file diff --git a/.gitignore b/.gitignore index c9f6340..9619790 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ melos_my_project.iml .vscode/* !.vscode/tasks.json !.vscode/settings.json +.fvm/flutter_sdk .packages .pub/ diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..2369e24 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,31 @@ +{ + "dart.flutterSdkPath": ".fvm/flutter_sdk", + "search.exclude": { + "**/.fvm": true, + "**/*.g.dart": true, + }, + "files.exclude": { + "**/.git": true, + "**/.DS_Store": true, + ".idea/**": true, + ".run/**": true, + }, + // Remove from file watching + "files.watcherExclude": { + "**/.fvm": true + }, + "dart.lineLength": 120, + "editor.rulers": [ + 120 + ], + "yaml.schemas": { + "https://json.schemastore.org/dart-build.json": [ + "build.yaml" + ] + }, + "explorer.fileNesting.enabled": true, + "explorer.fileNesting.patterns": { + "*.dart": "${capture}.g.dart,${capture}.freezed.dart,${capture}.auto_mappr.dart" + }, + "yaml.schemaStore.enable": false +} \ No newline at end of file diff --git a/packages/netglade_utils/lib/src/testing/mock_extensions.dart b/packages/netglade_utils/lib/src/testing/mock_extensions.dart index 6ba4ec1..e453f8b 100644 --- a/packages/netglade_utils/lib/src/testing/mock_extensions.dart +++ b/packages/netglade_utils/lib/src/testing/mock_extensions.dart @@ -6,11 +6,13 @@ import 'package:mocktail/mocktail.dart'; import 'package:netglade_utils/src/result/result.dart'; extension FutureVoidAnswer on When> { - void thenAnswerWithVoid() => thenAnswer((_) async => {}); + // ignore: no-empty-block, its ok + void thenAnswerWithVoid() => thenAnswer((_) async {}); } extension VoidAnswer on When { - void thenAnswerWithVoid() => thenAnswer((_) => {}); + // ignore: no-empty-block, its ok + void thenAnswerWithVoid() => thenAnswer((_) {}); } extension GenericAnswer on When> {