diff --git a/packages/android_intent_plus/example/analysis_options.yaml b/packages/android_intent_plus/example/analysis_options.yaml deleted file mode 100644 index 8b38242f71..0000000000 --- a/packages/android_intent_plus/example/analysis_options.yaml +++ /dev/null @@ -1,7 +0,0 @@ -# TODO: Remove this when migrated to null safety -include: package:flutter_lints/flutter.yaml - -linter: - rules: - - prefer_final_in_for_each - - prefer_final_locals diff --git a/packages/connectivity_plus/connectivity_plus/example/analysis_options.yaml b/packages/connectivity_plus/connectivity_plus/example/analysis_options.yaml deleted file mode 100644 index 61b6c4de17..0000000000 --- a/packages/connectivity_plus/connectivity_plus/example/analysis_options.yaml +++ /dev/null @@ -1,29 +0,0 @@ -# This file configures the analyzer, which statically analyzes Dart code to -# check for errors, warnings, and lints. -# -# The issues identified by the analyzer are surfaced in the UI of Dart-enabled -# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be -# invoked from the command line by running `flutter analyze`. - -# The following line activates a set of recommended lints for Flutter apps, -# packages, and plugins designed to encourage good coding practices. -include: package:flutter_lints/flutter.yaml - -linter: - # The lint rules applied to this project can be customized in the - # section below to disable rules from the `package:flutter_lints/flutter.yaml` - # included above or to enable additional rules. A list of all available lints - # and their documentation is published at - # https://dart-lang.github.io/linter/lints/index.html. - # - # Instead of disabling a lint rule for the entire project in the - # section below, it can also be suppressed for a single line of code - # or a specific dart file by using the `// ignore: name_of_lint` and - # `// ignore_for_file: name_of_lint` syntax on the line or in the file - # producing the lint. - rules: - # avoid_print: false # Uncomment to disable the `avoid_print` rule - # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule - -# Additional information about this file can be found at -# https://dart.dev/guides/language/analysis-options diff --git a/packages/package_info_plus/package_info_plus/example/analysis_options.yaml b/packages/package_info_plus/package_info_plus/example/analysis_options.yaml deleted file mode 100644 index 73b14a1b60..0000000000 --- a/packages/package_info_plus/package_info_plus/example/analysis_options.yaml +++ /dev/null @@ -1,8 +0,0 @@ -# TODO: Remove this when migrated to null safety -include: package:flutter_lints/flutter.yaml - -linter: - rules: - - prefer_final_in_for_each - - prefer_final_locals - diff --git a/packages/share_plus/share_plus/test/share_plus_windows_test.dart b/packages/share_plus/share_plus/test/share_plus_windows_test.dart index 52017903bf..f76eaafce9 100644 --- a/packages/share_plus/share_plus/test/share_plus_windows_test.dart +++ b/packages/share_plus/share_plus/test/share_plus_windows_test.dart @@ -19,46 +19,34 @@ void main() { // These tests are only valid on Windows versions lower than 10.0.17763.0. - test( - 'url encoding is correct for &', - () async { - final mock = MockUrlLauncherPlatform(); + test('url encoding is correct for &', () async { + final mock = MockUrlLauncherPlatform(); - await SharePlusWindowsPlugin( - mock, - ).share(ShareParams(text: 'foo&bar', subject: 'bar&foo')); + await SharePlusWindowsPlugin( + mock, + ).share(ShareParams(text: 'foo&bar', subject: 'bar&foo')); - expect(mock.url, 'mailto:?subject=bar%26foo&body=foo%26bar'); - }, - skip: VersionHelper.instance.isWindows10RS5OrGreater, - ); + expect(mock.url, 'mailto:?subject=bar%26foo&body=foo%26bar'); + }, skip: VersionHelper.instance.isWindows10RS5OrGreater); // see https://github.com/dart-lang/sdk/issues/43838#issuecomment-823551891 - test( - 'url encoding is correct for spaces', - () async { - final mock = MockUrlLauncherPlatform(); + test('url encoding is correct for spaces', () async { + final mock = MockUrlLauncherPlatform(); - await SharePlusWindowsPlugin( - mock, - ).share(ShareParams(text: 'foo bar', subject: 'bar foo')); + await SharePlusWindowsPlugin( + mock, + ).share(ShareParams(text: 'foo bar', subject: 'bar foo')); - expect(mock.url, 'mailto:?subject=bar%20foo&body=foo%20bar'); - }, - skip: VersionHelper.instance.isWindows10RS5OrGreater, - ); + expect(mock.url, 'mailto:?subject=bar%20foo&body=foo%20bar'); + }, skip: VersionHelper.instance.isWindows10RS5OrGreater); - test( - 'can share URI on Windows', - () async { - final mock = MockUrlLauncherPlatform(); + test('can share URI on Windows', () async { + final mock = MockUrlLauncherPlatform(); - await SharePlusWindowsPlugin( - mock, - ).share(ShareParams(uri: Uri.parse('http://example.com'))); + await SharePlusWindowsPlugin( + mock, + ).share(ShareParams(uri: Uri.parse('http://example.com'))); - expect(mock.url, 'mailto:?body=http%3A%2F%2Fexample.com'); - }, - skip: VersionHelper.instance.isWindows10RS5OrGreater, - ); + expect(mock.url, 'mailto:?body=http%3A%2F%2Fexample.com'); + }, skip: VersionHelper.instance.isWindows10RS5OrGreater); }