diff --git a/platform_view_swift/analysis_options.yaml b/platform_view_swift/analysis_options.yaml new file mode 100644 index 000000000..f117e8a5f --- /dev/null +++ b/platform_view_swift/analysis_options.yaml @@ -0,0 +1,30 @@ +include: package:pedantic/analysis_options.yaml + +analyzer: + strong-mode: + implicit-casts: false + implicit-dynamic: false + +linter: + rules: + - avoid_types_on_closure_parameters + - avoid_void_async + - await_only_futures + - camel_case_types + - cancel_subscriptions + - close_sinks + - constant_identifier_names + - control_flow_in_finally + - empty_statements + - hash_and_equals + - implementation_imports + - non_constant_identifier_names + - package_api_docs + - package_names + - package_prefixed_library_names + - test_types_in_equals + - throw_in_finally + - unnecessary_brace_in_string_interps + - unnecessary_getters_setters + - unnecessary_new + - unnecessary_statements diff --git a/platform_view_swift/pubspec.lock b/platform_view_swift/pubspec.lock index a1e843124..39df99cbd 100644 --- a/platform_view_swift/pubspec.lock +++ b/platform_view_swift/pubspec.lock @@ -61,7 +61,7 @@ packages: source: hosted version: "1.6.2" pedantic: - dependency: transitive + dependency: "direct dev" description: name: pedantic url: "https://pub.dartlang.org" @@ -136,4 +136,4 @@ packages: source: hosted version: "2.0.8" sdks: - dart: ">=2.2.0 <3.0.0" + dart: ">=2.3.0-dev <3.0.0" diff --git a/platform_view_swift/pubspec.yaml b/platform_view_swift/pubspec.yaml index d8c3c2cc1..63ce15541 100644 --- a/platform_view_swift/pubspec.yaml +++ b/platform_view_swift/pubspec.yaml @@ -1,4 +1,6 @@ name: platform_view_swift +environment: + sdk: ">=2.3.0-dev <3.0.0" dependencies: flutter: @@ -7,6 +9,7 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter + pedantic: ^1.5.0 flutter: uses-material-design: true diff --git a/platform_view_swift/test/widgets_test.dart b/platform_view_swift/test/widgets_test.dart index 65c35a3e6..f1181b0c4 100644 --- a/platform_view_swift/test/widgets_test.dart +++ b/platform_view_swift/test/widgets_test.dart @@ -7,5 +7,5 @@ import 'package:flutter_test/flutter_test.dart'; void main() { - testWidgets('This test always passes', (WidgetTester tester) async {}); + testWidgets('This test always passes', (tester) async {}); }