diff --git a/pkgs/code_assets/analysis_options.yaml b/pkgs/code_assets/analysis_options.yaml index a36686135..a62710331 100644 --- a/pkgs/code_assets/analysis_options.yaml +++ b/pkgs/code_assets/analysis_options.yaml @@ -1,20 +1 @@ -include: package:dart_flutter_team_lints/analysis_options.yaml - -analyzer: - language: - strict-raw-types: true - plugins: - # - custom_lint # https://github.com/dart-lang/sdk/issues/60784 - -linter: - rules: - - avoid_positional_boolean_parameters - - public_member_api_docs - - prefer_const_declarations - - prefer_expression_function_bodies - - prefer_final_in_for_each - - prefer_final_locals - -custom_lint: - rules: - - avoid_import_outside_src +include: package:native_test_helpers/analysis_options.yaml diff --git a/pkgs/code_assets/pubspec.yaml b/pkgs/code_assets/pubspec.yaml index fe4abd186..fdf8d09e4 100644 --- a/pkgs/code_assets/pubspec.yaml +++ b/pkgs/code_assets/pubspec.yaml @@ -24,11 +24,7 @@ dependencies: hooks: ^0.19.5 dev_dependencies: - custom_lint: ^0.7.5 - dart_flutter_team_lints: ^3.5.2 json_schema: ^5.2.0 # May only be used in tool/ and test/json_schema/. native_test_helpers: path: ../native_test_helpers/ - repo_lint_rules: - path: ../repo_lint_rules/ test: ^1.25.15 diff --git a/pkgs/data_assets/analysis_options.yaml b/pkgs/data_assets/analysis_options.yaml index c0462a3a7..a62710331 100644 --- a/pkgs/data_assets/analysis_options.yaml +++ b/pkgs/data_assets/analysis_options.yaml @@ -1,19 +1 @@ -include: package:dart_flutter_team_lints/analysis_options.yaml - -analyzer: - language: - strict-raw-types: true - plugins: - # - custom_lint # https://github.com/dart-lang/sdk/issues/60784 - -linter: - rules: - - avoid_positional_boolean_parameters - - prefer_const_declarations - - prefer_expression_function_bodies - - prefer_final_in_for_each - - prefer_final_locals - -custom_lint: - rules: - - avoid_import_outside_src +include: package:native_test_helpers/analysis_options.yaml diff --git a/pkgs/data_assets/pubspec.yaml b/pkgs/data_assets/pubspec.yaml index 9ebfeed24..c110c51cb 100644 --- a/pkgs/data_assets/pubspec.yaml +++ b/pkgs/data_assets/pubspec.yaml @@ -20,11 +20,7 @@ dependencies: hooks: ^0.19.5 dev_dependencies: - custom_lint: ^0.7.5 - dart_flutter_team_lints: ^3.5.2 json_schema: ^5.2.0 # May only be used in tool/ and test/json_schema/. native_test_helpers: path: ../native_test_helpers - repo_lint_rules: - path: ../repo_lint_rules/ test: ^1.25.15 diff --git a/pkgs/ffi/analysis_options.yaml b/pkgs/ffi/analysis_options.yaml index 4ce1a9ba0..a62710331 100644 --- a/pkgs/ffi/analysis_options.yaml +++ b/pkgs/ffi/analysis_options.yaml @@ -1,9 +1 @@ -include: package:dart_flutter_team_lints/analysis_options.yaml - -analyzer: - language: - strict-raw-types: true - -linter: - rules: - - prefer_final_locals +include: package:native_test_helpers/analysis_options.yaml diff --git a/pkgs/ffi/pubspec.yaml b/pkgs/ffi/pubspec.yaml index 2a896eb52..401f22c0e 100644 --- a/pkgs/ffi/pubspec.yaml +++ b/pkgs/ffi/pubspec.yaml @@ -13,5 +13,6 @@ environment: sdk: '>=3.7.0 <4.0.0' dev_dependencies: - dart_flutter_team_lints: ^3.5.2 + native_test_helpers: + path: ../native_test_helpers test: ^1.21.2 diff --git a/pkgs/ffigen/analysis_options.yaml b/pkgs/ffigen/analysis_options.yaml index 86dfe9e2e..a62710331 100644 --- a/pkgs/ffigen/analysis_options.yaml +++ b/pkgs/ffigen/analysis_options.yaml @@ -1,23 +1 @@ -# Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file -# for details. All rights reserved. Use of this source code is governed by a -# BSD-style license that can be found in the LICENSE file. - -include: package:dart_flutter_team_lints/analysis_options.yaml - -analyzer: - exclude: - - 'test/**_expected*' - - # Exclude anything that uses package:objective_c, due to flutter dependency. - # https://github.com/dart-lang/native/issues/1068 - - example/objective_c/** - - example/swift/** - - test_flutter/native_objc_test/** - - test/native_objc_test/** - language: - strict-raw-types: true - -linter: - rules: - prefer_final_locals: true - prefer_final_in_for_each: true +include: package:native_test_helpers/analysis_options.yaml diff --git a/pkgs/ffigen/example/c_json/pubspec.yaml b/pkgs/ffigen/example/c_json/pubspec.yaml index e218628ba..5580313f1 100644 --- a/pkgs/ffigen/example/c_json/pubspec.yaml +++ b/pkgs/ffigen/example/c_json/pubspec.yaml @@ -12,6 +12,5 @@ dependencies: path: ^1.8.0 dev_dependencies: - dart_flutter_team_lints: ^3.5.2 ffigen: path: '../../' diff --git a/pkgs/ffigen/example/ffinative/pubspec.yaml b/pkgs/ffigen/example/ffinative/pubspec.yaml index e3a1b3d77..9a20a2564 100644 --- a/pkgs/ffigen/example/ffinative/pubspec.yaml +++ b/pkgs/ffigen/example/ffinative/pubspec.yaml @@ -11,6 +11,5 @@ dependencies: ffi: ^2.0.1 dev_dependencies: - dart_flutter_team_lints: ^3.5.2 ffigen: path: '../../' diff --git a/pkgs/ffigen/example/libclang-example/pubspec.yaml b/pkgs/ffigen/example/libclang-example/pubspec.yaml index c2a2e3863..5a7c50147 100644 --- a/pkgs/ffigen/example/libclang-example/pubspec.yaml +++ b/pkgs/ffigen/example/libclang-example/pubspec.yaml @@ -11,6 +11,5 @@ dependencies: ffi: ^2.0.1 dev_dependencies: - dart_flutter_team_lints: ^3.5.2 ffigen: path: '../../' diff --git a/pkgs/ffigen/example/objective_c/pubspec.yaml b/pkgs/ffigen/example/objective_c/pubspec.yaml index 470216256..1558eb760 100644 --- a/pkgs/ffigen/example/objective_c/pubspec.yaml +++ b/pkgs/ffigen/example/objective_c/pubspec.yaml @@ -13,7 +13,6 @@ dependencies: objective_c: ^0.0.1 dev_dependencies: - dart_flutter_team_lints: ^3.5.2 ffigen: path: ../../ diff --git a/pkgs/ffigen/example/shared_bindings/pubspec.yaml b/pkgs/ffigen/example/shared_bindings/pubspec.yaml index cc1256fb5..3dd8141a1 100644 --- a/pkgs/ffigen/example/shared_bindings/pubspec.yaml +++ b/pkgs/ffigen/example/shared_bindings/pubspec.yaml @@ -13,6 +13,5 @@ dependencies: path: ^1.8.0 dev_dependencies: - dart_flutter_team_lints: ^3.5.2 ffigen: path: '../../' diff --git a/pkgs/ffigen/example/simple/pubspec.yaml b/pkgs/ffigen/example/simple/pubspec.yaml index 4b6df34dc..cc1d9f7fa 100644 --- a/pkgs/ffigen/example/simple/pubspec.yaml +++ b/pkgs/ffigen/example/simple/pubspec.yaml @@ -11,6 +11,5 @@ dependencies: ffi: ^2.0.1 dev_dependencies: - dart_flutter_team_lints: ^3.5.2 ffigen: path: '../../' diff --git a/pkgs/ffigen/example/swift/pubspec.yaml b/pkgs/ffigen/example/swift/pubspec.yaml index 646587372..cfd51c9bf 100644 --- a/pkgs/ffigen/example/swift/pubspec.yaml +++ b/pkgs/ffigen/example/swift/pubspec.yaml @@ -13,7 +13,6 @@ dependencies: objective_c: ^0.0.1 dev_dependencies: - dart_flutter_team_lints: ^3.5.2 ffigen: path: ../../ diff --git a/pkgs/ffigen/pubspec.yaml b/pkgs/ffigen/pubspec.yaml index 7df34f7a5..6bf434a19 100644 --- a/pkgs/ffigen/pubspec.yaml +++ b/pkgs/ffigen/pubspec.yaml @@ -37,7 +37,8 @@ dependencies: dev_dependencies: async: ^2.11.0 - dart_flutter_team_lints: ^3.5.2 + native_test_helpers: + path: ../native_test_helpers json_schema: ^5.1.1 leak_tracker: ^10.0.7 objective_c: ^8.1.0 diff --git a/pkgs/hooks/analysis_options.yaml b/pkgs/hooks/analysis_options.yaml index a36686135..a62710331 100644 --- a/pkgs/hooks/analysis_options.yaml +++ b/pkgs/hooks/analysis_options.yaml @@ -1,20 +1 @@ -include: package:dart_flutter_team_lints/analysis_options.yaml - -analyzer: - language: - strict-raw-types: true - plugins: - # - custom_lint # https://github.com/dart-lang/sdk/issues/60784 - -linter: - rules: - - avoid_positional_boolean_parameters - - public_member_api_docs - - prefer_const_declarations - - prefer_expression_function_bodies - - prefer_final_in_for_each - - prefer_final_locals - -custom_lint: - rules: - - avoid_import_outside_src +include: package:native_test_helpers/analysis_options.yaml diff --git a/pkgs/hooks/example/build/download_asset/pubspec.yaml b/pkgs/hooks/example/build/download_asset/pubspec.yaml index ff8da16cb..afd1fd226 100644 --- a/pkgs/hooks/example/build/download_asset/pubspec.yaml +++ b/pkgs/hooks/example/build/download_asset/pubspec.yaml @@ -20,7 +20,6 @@ dependencies: dev_dependencies: args: ^2.6.0 ffigen: ^18.0.0 - lints: ^6.0.0 test: ^1.25.15 # Note: If pub workspaces are in use, the user-defines must be in the workspace diff --git a/pkgs/hooks/example/build/local_asset/pubspec.yaml b/pkgs/hooks/example/build/local_asset/pubspec.yaml index 8eedf22a4..f717843c7 100644 --- a/pkgs/hooks/example/build/local_asset/pubspec.yaml +++ b/pkgs/hooks/example/build/local_asset/pubspec.yaml @@ -18,5 +18,4 @@ dependencies: dev_dependencies: ffigen: ^18.0.0 file_testing: ^3.0.2 - lints: ^6.0.0 test: ^1.25.15 diff --git a/pkgs/hooks/example/build/native_add_app/pubspec.yaml b/pkgs/hooks/example/build/native_add_app/pubspec.yaml index fad3e74e0..2492906ca 100644 --- a/pkgs/hooks/example/build/native_add_app/pubspec.yaml +++ b/pkgs/hooks/example/build/native_add_app/pubspec.yaml @@ -15,5 +15,4 @@ dependencies: path: ../native_add_library/ dev_dependencies: - lints: ^6.0.0 test: ^1.25.15 diff --git a/pkgs/hooks/example/build/native_add_library/pubspec.yaml b/pkgs/hooks/example/build/native_add_library/pubspec.yaml index 8f3c66223..1c67ac582 100644 --- a/pkgs/hooks/example/build/native_add_library/pubspec.yaml +++ b/pkgs/hooks/example/build/native_add_library/pubspec.yaml @@ -18,5 +18,4 @@ dependencies: dev_dependencies: ffigen: ^18.0.0 - lints: ^6.0.0 test: ^1.25.15 diff --git a/pkgs/hooks/example/build/native_dynamic_linking/pubspec.yaml b/pkgs/hooks/example/build/native_dynamic_linking/pubspec.yaml index b773417f7..d526ab99e 100644 --- a/pkgs/hooks/example/build/native_dynamic_linking/pubspec.yaml +++ b/pkgs/hooks/example/build/native_dynamic_linking/pubspec.yaml @@ -18,5 +18,4 @@ dependencies: dev_dependencies: ffigen: ^18.0.0 - lints: ^6.0.0 test: ^1.25.15 diff --git a/pkgs/hooks/example/build/system_library/pubspec.yaml b/pkgs/hooks/example/build/system_library/pubspec.yaml index a63591414..b5bc1fcf8 100644 --- a/pkgs/hooks/example/build/system_library/pubspec.yaml +++ b/pkgs/hooks/example/build/system_library/pubspec.yaml @@ -17,5 +17,4 @@ dependencies: dev_dependencies: ffigen: ^18.0.0 - lints: ^6.0.0 test: ^1.25.15 diff --git a/pkgs/hooks/example/build/use_dart_api/pubspec.yaml b/pkgs/hooks/example/build/use_dart_api/pubspec.yaml index 3021f9d9f..b0ad55732 100644 --- a/pkgs/hooks/example/build/use_dart_api/pubspec.yaml +++ b/pkgs/hooks/example/build/use_dart_api/pubspec.yaml @@ -17,5 +17,4 @@ dependencies: dev_dependencies: ffigen: ^18.0.0 - lints: ^6.0.0 test: ^1.25.15 diff --git a/pkgs/hooks/example/link/app_with_asset_treeshaking/analysis_options.yaml b/pkgs/hooks/example/link/app_with_asset_treeshaking/analysis_options.yaml index 8d82fc428..f14d5ffab 100644 --- a/pkgs/hooks/example/link/app_with_asset_treeshaking/analysis_options.yaml +++ b/pkgs/hooks/example/link/app_with_asset_treeshaking/analysis_options.yaml @@ -1,4 +1,4 @@ -include: package:lints/recommended.yaml +include: package:native_test_helpers/analysis_options.yaml -# For additional information about configuring this file, see +# Additional information about this file can be found at # https://dart.dev/guides/language/analysis-options diff --git a/pkgs/hooks/example/link/app_with_asset_treeshaking/pubspec.yaml b/pkgs/hooks/example/link/app_with_asset_treeshaking/pubspec.yaml index 7ff813dab..129d604ca 100644 --- a/pkgs/hooks/example/link/app_with_asset_treeshaking/pubspec.yaml +++ b/pkgs/hooks/example/link/app_with_asset_treeshaking/pubspec.yaml @@ -15,5 +15,4 @@ dependencies: path: ../package_with_assets/ dev_dependencies: - lints: ^6.0.0 test: ^1.25.15 diff --git a/pkgs/hooks/example/link/package_with_assets/pubspec.yaml b/pkgs/hooks/example/link/package_with_assets/pubspec.yaml index 4534649ab..1ea6a6164 100644 --- a/pkgs/hooks/example/link/package_with_assets/pubspec.yaml +++ b/pkgs/hooks/example/link/package_with_assets/pubspec.yaml @@ -17,5 +17,4 @@ dependencies: record_use: ^0.3.0 dev_dependencies: - lints: ^6.0.0 test: ^1.25.15 diff --git a/pkgs/hooks/pubspec.yaml b/pkgs/hooks/pubspec.yaml index 56d23d18e..d2913f1c1 100644 --- a/pkgs/hooks/pubspec.yaml +++ b/pkgs/hooks/pubspec.yaml @@ -30,8 +30,6 @@ dependencies: dev_dependencies: args: ^2.6.0 code_assets: ^0.19.4 # Used for running tests with real asset types. - custom_lint: ^0.7.5 - dart_flutter_team_lints: ^3.5.2 data_assets: any # Used for running tests with real asset types. file_testing: ^3.0.2 glob: any @@ -41,6 +39,4 @@ dev_dependencies: native_test_helpers: path: ../native_test_helpers/ path: ^1.9.1 - repo_lint_rules: - path: ../repo_lint_rules/ test: ^1.25.15 diff --git a/pkgs/hooks_runner/analysis_options.yaml b/pkgs/hooks_runner/analysis_options.yaml index c0462a3a7..a62710331 100644 --- a/pkgs/hooks_runner/analysis_options.yaml +++ b/pkgs/hooks_runner/analysis_options.yaml @@ -1,19 +1 @@ -include: package:dart_flutter_team_lints/analysis_options.yaml - -analyzer: - language: - strict-raw-types: true - plugins: - # - custom_lint # https://github.com/dart-lang/sdk/issues/60784 - -linter: - rules: - - avoid_positional_boolean_parameters - - prefer_const_declarations - - prefer_expression_function_bodies - - prefer_final_in_for_each - - prefer_final_locals - -custom_lint: - rules: - - avoid_import_outside_src +include: package:native_test_helpers/analysis_options.yaml diff --git a/pkgs/hooks_runner/pubspec.yaml b/pkgs/hooks_runner/pubspec.yaml index db6b476d0..a365156b6 100644 --- a/pkgs/hooks_runner/pubspec.yaml +++ b/pkgs/hooks_runner/pubspec.yaml @@ -25,12 +25,8 @@ dependencies: yaml: ^3.1.3 dev_dependencies: - custom_lint: ^0.7.5 - dart_flutter_team_lints: ^3.5.2 data_assets: any # Used in tests. file_testing: ^3.0.2 native_test_helpers: path: ../native_test_helpers/ - repo_lint_rules: - path: ../repo_lint_rules/ test: ^1.25.15 diff --git a/pkgs/hooks_runner/test_data/add_asset_link/pubspec.yaml b/pkgs/hooks_runner/test_data/add_asset_link/pubspec.yaml index c181880a6..b774df7b6 100644 --- a/pkgs/hooks_runner/test_data/add_asset_link/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/add_asset_link/pubspec.yaml @@ -17,5 +17,4 @@ dependencies: native_toolchain_c: any dev_dependencies: - lints: ^6.0.0 test: ^1.25.15 diff --git a/pkgs/hooks_runner/test_data/complex_link/pubspec.yaml b/pkgs/hooks_runner/test_data/complex_link/pubspec.yaml index e0b836075..72f6006a4 100644 --- a/pkgs/hooks_runner/test_data/complex_link/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/complex_link/pubspec.yaml @@ -18,6 +18,5 @@ dependencies: logging: ^1.3.0 dev_dependencies: - lints: ^6.0.0 path: ^1.9.0 test: ^1.25.15 diff --git a/pkgs/hooks_runner/test_data/complex_link_helper/pubspec.yaml b/pkgs/hooks_runner/test_data/complex_link_helper/pubspec.yaml index 3e35cb2cb..a03ad2435 100644 --- a/pkgs/hooks_runner/test_data/complex_link_helper/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/complex_link_helper/pubspec.yaml @@ -16,6 +16,5 @@ dependencies: logging: ^1.3.0 dev_dependencies: - lints: ^6.0.0 path: ^1.9.0 test: ^1.25.15 diff --git a/pkgs/hooks_runner/test_data/cyclic_package_1/pubspec.yaml b/pkgs/hooks_runner/test_data/cyclic_package_1/pubspec.yaml index 1c1374908..f3fb3b491 100644 --- a/pkgs/hooks_runner/test_data/cyclic_package_1/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/cyclic_package_1/pubspec.yaml @@ -15,4 +15,3 @@ dependencies: hooks: any dev_dependencies: - lints: ^6.0.0 diff --git a/pkgs/hooks_runner/test_data/cyclic_package_2/pubspec.yaml b/pkgs/hooks_runner/test_data/cyclic_package_2/pubspec.yaml index b4494d842..011bc7d07 100644 --- a/pkgs/hooks_runner/test_data/cyclic_package_2/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/cyclic_package_2/pubspec.yaml @@ -15,4 +15,3 @@ dependencies: hooks: any dev_dependencies: - lints: ^6.0.0 diff --git a/pkgs/hooks_runner/test_data/depend_on_fail_build/pubspec.yaml b/pkgs/hooks_runner/test_data/depend_on_fail_build/pubspec.yaml index 5b5dab29e..ddc39b2a0 100644 --- a/pkgs/hooks_runner/test_data/depend_on_fail_build/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/depend_on_fail_build/pubspec.yaml @@ -16,5 +16,4 @@ dependencies: dev_dependencies: ffigen: ^18.0.0 - lints: ^6.0.0 test: ^1.25.15 diff --git a/pkgs/hooks_runner/test_data/depend_on_fail_build_app/pubspec.yaml b/pkgs/hooks_runner/test_data/depend_on_fail_build_app/pubspec.yaml index 7b6c3ef9a..7e264c63e 100644 --- a/pkgs/hooks_runner/test_data/depend_on_fail_build_app/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/depend_on_fail_build_app/pubspec.yaml @@ -16,5 +16,4 @@ dependencies: dev_dependencies: ffigen: ^18.0.0 - lints: ^6.0.0 test: ^1.25.15 diff --git a/pkgs/hooks_runner/test_data/dev_dependency_with_hook/pubspec.yaml b/pkgs/hooks_runner/test_data/dev_dependency_with_hook/pubspec.yaml index e7c374d32..547251ba8 100644 --- a/pkgs/hooks_runner/test_data/dev_dependency_with_hook/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/dev_dependency_with_hook/pubspec.yaml @@ -13,7 +13,6 @@ dependencies: {} dev_dependencies: ffigen: ^18.0.0 - lints: ^6.0.0 native_add: path: ../native_add/ test: ^1.25.15 diff --git a/pkgs/hooks_runner/test_data/drop_dylib_link/pubspec.yaml b/pkgs/hooks_runner/test_data/drop_dylib_link/pubspec.yaml index 887452f9e..b8d84247d 100644 --- a/pkgs/hooks_runner/test_data/drop_dylib_link/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/drop_dylib_link/pubspec.yaml @@ -16,5 +16,4 @@ dependencies: native_toolchain_c: any dev_dependencies: - lints: ^6.0.0 test: ^1.25.15 diff --git a/pkgs/hooks_runner/test_data/fail_build/pubspec.yaml b/pkgs/hooks_runner/test_data/fail_build/pubspec.yaml index 0f2d2345d..f10d6c1ea 100644 --- a/pkgs/hooks_runner/test_data/fail_build/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/fail_build/pubspec.yaml @@ -15,5 +15,4 @@ dependencies: dev_dependencies: ffigen: ^18.0.0 - lints: ^6.0.0 test: ^1.25.15 diff --git a/pkgs/hooks_runner/test_data/fail_on_os_sdk_version/pubspec.yaml b/pkgs/hooks_runner/test_data/fail_on_os_sdk_version/pubspec.yaml index 5ba5eadbd..1e2adaa00 100644 --- a/pkgs/hooks_runner/test_data/fail_on_os_sdk_version/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/fail_on_os_sdk_version/pubspec.yaml @@ -15,5 +15,4 @@ dependencies: dev_dependencies: ffigen: ^18.0.0 - lints: ^6.0.0 test: ^1.25.15 diff --git a/pkgs/hooks_runner/test_data/fail_on_os_sdk_version_link/pubspec.yaml b/pkgs/hooks_runner/test_data/fail_on_os_sdk_version_link/pubspec.yaml index b604068d4..cb7f16408 100644 --- a/pkgs/hooks_runner/test_data/fail_on_os_sdk_version_link/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/fail_on_os_sdk_version_link/pubspec.yaml @@ -17,5 +17,4 @@ dependencies: dev_dependencies: ffigen: ^18.0.0 - lints: ^6.0.0 test: ^1.25.15 diff --git a/pkgs/hooks_runner/test_data/fail_on_os_sdk_version_linker/pubspec.yaml b/pkgs/hooks_runner/test_data/fail_on_os_sdk_version_linker/pubspec.yaml index a89247eb9..fcb58def9 100644 --- a/pkgs/hooks_runner/test_data/fail_on_os_sdk_version_linker/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/fail_on_os_sdk_version_linker/pubspec.yaml @@ -15,5 +15,4 @@ dependencies: dev_dependencies: ffigen: ^18.0.0 - lints: ^6.0.0 test: ^1.25.15 diff --git a/pkgs/hooks_runner/test_data/infra_failure/pubspec.yaml b/pkgs/hooks_runner/test_data/infra_failure/pubspec.yaml index 682bf4f0f..9cb782d71 100644 --- a/pkgs/hooks_runner/test_data/infra_failure/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/infra_failure/pubspec.yaml @@ -15,5 +15,4 @@ dependencies: dev_dependencies: ffigen: ^18.0.0 - lints: ^6.0.0 test: ^1.25.15 diff --git a/pkgs/hooks_runner/test_data/native_add/pubspec.yaml b/pkgs/hooks_runner/test_data/native_add/pubspec.yaml index c1dfbef85..28dbdc906 100644 --- a/pkgs/hooks_runner/test_data/native_add/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/native_add/pubspec.yaml @@ -17,7 +17,6 @@ dependencies: dev_dependencies: ffigen: ^18.0.0 - lints: ^6.0.0 some_dev_dep: path: ../some_dev_dep/ test: ^1.25.15 diff --git a/pkgs/hooks_runner/test_data/native_add_add_source/pubspec.yaml b/pkgs/hooks_runner/test_data/native_add_add_source/pubspec.yaml index aa14a7b9e..e16efe253 100644 --- a/pkgs/hooks_runner/test_data/native_add_add_source/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/native_add_add_source/pubspec.yaml @@ -17,7 +17,6 @@ dependencies: dev_dependencies: ffigen: ^18.0.0 - lints: ^6.0.0 some_dev_dep: path: ../some_dev_dep/ test: ^1.25.15 diff --git a/pkgs/hooks_runner/test_data/native_add_duplicate/pubspec.yaml b/pkgs/hooks_runner/test_data/native_add_duplicate/pubspec.yaml index ad1974f22..6774d788d 100644 --- a/pkgs/hooks_runner/test_data/native_add_duplicate/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/native_add_duplicate/pubspec.yaml @@ -19,7 +19,6 @@ dependencies: dev_dependencies: ffigen: ^18.0.0 - lints: ^6.0.0 some_dev_dep: path: ../some_dev_dep/ test: ^1.25.15 diff --git a/pkgs/hooks_runner/test_data/native_add_version_skew/analysis_options.yaml b/pkgs/hooks_runner/test_data/native_add_version_skew/analysis_options.yaml index 19ef10adf..a62710331 100644 --- a/pkgs/hooks_runner/test_data/native_add_version_skew/analysis_options.yaml +++ b/pkgs/hooks_runner/test_data/native_add_version_skew/analysis_options.yaml @@ -1,13 +1 @@ -include: package:dart_flutter_team_lints/analysis_options.yaml - -analyzer: - language: - strict-raw-types: true - -linter: - rules: - - avoid_positional_boolean_parameters - - prefer_const_declarations - - prefer_expression_function_bodies - - prefer_final_in_for_each - - prefer_final_locals +include: package:native_test_helpers/analysis_options.yaml diff --git a/pkgs/hooks_runner/test_data/native_add_version_skew/pubspec.yaml b/pkgs/hooks_runner/test_data/native_add_version_skew/pubspec.yaml index 2076494bf..d1eaa29e4 100644 --- a/pkgs/hooks_runner/test_data/native_add_version_skew/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/native_add_version_skew/pubspec.yaml @@ -13,9 +13,7 @@ dependencies: native_toolchain_c: ^0.12.0 dev_dependencies: - dart_flutter_team_lints: ^3.5.1 ffigen: ^18.0.0 - lints: ^6.0.0 some_dev_dep: path: ../some_dev_dep/ test: ^1.25.15 diff --git a/pkgs/hooks_runner/test_data/native_add_version_skew_2/analysis_options.yaml b/pkgs/hooks_runner/test_data/native_add_version_skew_2/analysis_options.yaml index 19ef10adf..a62710331 100644 --- a/pkgs/hooks_runner/test_data/native_add_version_skew_2/analysis_options.yaml +++ b/pkgs/hooks_runner/test_data/native_add_version_skew_2/analysis_options.yaml @@ -1,13 +1 @@ -include: package:dart_flutter_team_lints/analysis_options.yaml - -analyzer: - language: - strict-raw-types: true - -linter: - rules: - - avoid_positional_boolean_parameters - - prefer_const_declarations - - prefer_expression_function_bodies - - prefer_final_in_for_each - - prefer_final_locals +include: package:native_test_helpers/analysis_options.yaml diff --git a/pkgs/hooks_runner/test_data/native_add_version_skew_2/pubspec.yaml b/pkgs/hooks_runner/test_data/native_add_version_skew_2/pubspec.yaml index 97289f377..211be7d17 100644 --- a/pkgs/hooks_runner/test_data/native_add_version_skew_2/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/native_add_version_skew_2/pubspec.yaml @@ -13,9 +13,7 @@ dependencies: native_toolchain_c: ^0.5.0 dev_dependencies: - dart_flutter_team_lints: ^3.5.1 ffigen: ^18.0.0 - lints: ^6.0.0 some_dev_dep: path: ../some_dev_dep/ test: ^1.25.15 diff --git a/pkgs/hooks_runner/test_data/native_dynamic_linking/pubspec.yaml b/pkgs/hooks_runner/test_data/native_dynamic_linking/pubspec.yaml index b573642f2..eb20b51e1 100644 --- a/pkgs/hooks_runner/test_data/native_dynamic_linking/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/native_dynamic_linking/pubspec.yaml @@ -18,5 +18,4 @@ dependencies: dev_dependencies: ffigen: ^18.0.0 - lints: ^6.0.0 test: ^1.25.15 diff --git a/pkgs/hooks_runner/test_data/native_subtract/pubspec.yaml b/pkgs/hooks_runner/test_data/native_subtract/pubspec.yaml index cea1feff4..096a7c426 100644 --- a/pkgs/hooks_runner/test_data/native_subtract/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/native_subtract/pubspec.yaml @@ -17,5 +17,4 @@ dependencies: dev_dependencies: ffigen: ^18.0.0 - lints: ^6.0.0 test: ^1.25.15 diff --git a/pkgs/hooks_runner/test_data/no_asset_for_link/pubspec.yaml b/pkgs/hooks_runner/test_data/no_asset_for_link/pubspec.yaml index b79ce72dd..8481bdf33 100644 --- a/pkgs/hooks_runner/test_data/no_asset_for_link/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/no_asset_for_link/pubspec.yaml @@ -17,5 +17,4 @@ dependencies: meta: ^1.16.0 dev_dependencies: - lints: ^6.0.0 test: ^1.25.15 diff --git a/pkgs/hooks_runner/test_data/no_hook/pubspec.yaml b/pkgs/hooks_runner/test_data/no_hook/pubspec.yaml index 17b09b40d..1dd8a5649 100644 --- a/pkgs/hooks_runner/test_data/no_hook/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/no_hook/pubspec.yaml @@ -17,7 +17,6 @@ dependencies: dev_dependencies: ffigen: ^18.0.0 - lints: ^6.0.0 some_dev_dep: path: ../some_dev_dep/ test: ^1.25.15 diff --git a/pkgs/hooks_runner/test_data/package_reading_metadata/pubspec.yaml b/pkgs/hooks_runner/test_data/package_reading_metadata/pubspec.yaml index ca1dea601..d6957a043 100644 --- a/pkgs/hooks_runner/test_data/package_reading_metadata/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/package_reading_metadata/pubspec.yaml @@ -16,4 +16,3 @@ dependencies: path: ../package_with_metadata/ dev_dependencies: - lints: ^6.0.0 diff --git a/pkgs/hooks_runner/test_data/package_with_metadata/pubspec.yaml b/pkgs/hooks_runner/test_data/package_with_metadata/pubspec.yaml index b8c6daa33..22ab8a304 100644 --- a/pkgs/hooks_runner/test_data/package_with_metadata/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/package_with_metadata/pubspec.yaml @@ -14,4 +14,3 @@ dependencies: hooks: any dev_dependencies: - lints: ^6.0.0 diff --git a/pkgs/hooks_runner/test_data/relative_path/pubspec.yaml b/pkgs/hooks_runner/test_data/relative_path/pubspec.yaml index 3e5bd0d2b..504edd480 100644 --- a/pkgs/hooks_runner/test_data/relative_path/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/relative_path/pubspec.yaml @@ -15,4 +15,3 @@ dependencies: logging: ^1.3.0 dev_dependencies: - lints: ^6.0.0 diff --git a/pkgs/hooks_runner/test_data/reusable_dynamic_library/pubspec.yaml b/pkgs/hooks_runner/test_data/reusable_dynamic_library/pubspec.yaml index e36c166ef..e48a7d32b 100644 --- a/pkgs/hooks_runner/test_data/reusable_dynamic_library/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/reusable_dynamic_library/pubspec.yaml @@ -19,5 +19,4 @@ dependencies: dev_dependencies: ffigen: ^18.0.0 - lints: ^6.0.0 test: ^1.21.0 diff --git a/pkgs/hooks_runner/test_data/reuse_dynamic_library/pubspec.yaml b/pkgs/hooks_runner/test_data/reuse_dynamic_library/pubspec.yaml index b48b58e76..35752ed65 100644 --- a/pkgs/hooks_runner/test_data/reuse_dynamic_library/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/reuse_dynamic_library/pubspec.yaml @@ -20,5 +20,4 @@ dependencies: dev_dependencies: ffigen: ^18.0.0 - lints: ^6.0.0 test: ^1.21.0 diff --git a/pkgs/hooks_runner/test_data/simple_data_asset/pubspec.yaml b/pkgs/hooks_runner/test_data/simple_data_asset/pubspec.yaml index c5162bee4..674992210 100644 --- a/pkgs/hooks_runner/test_data/simple_data_asset/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/simple_data_asset/pubspec.yaml @@ -15,5 +15,4 @@ dependencies: logging: ^1.3.0 dev_dependencies: - lints: ^6.0.0 test: ^1.25.15 diff --git a/pkgs/hooks_runner/test_data/simple_link/pubspec.yaml b/pkgs/hooks_runner/test_data/simple_link/pubspec.yaml index 3f9553907..ed3d79a81 100644 --- a/pkgs/hooks_runner/test_data/simple_link/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/simple_link/pubspec.yaml @@ -16,6 +16,5 @@ dependencies: logging: ^1.3.0 dev_dependencies: - lints: ^6.0.0 path: ^1.9.0 test: ^1.25.15 diff --git a/pkgs/hooks_runner/test_data/system_library/pubspec.yaml b/pkgs/hooks_runner/test_data/system_library/pubspec.yaml index 78c769cb6..41ad2045b 100644 --- a/pkgs/hooks_runner/test_data/system_library/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/system_library/pubspec.yaml @@ -17,5 +17,4 @@ dependencies: dev_dependencies: ffigen: ^18.0.0 - lints: ^6.0.0 test: ^1.25.15 diff --git a/pkgs/hooks_runner/test_data/transformer/pubspec.yaml b/pkgs/hooks_runner/test_data/transformer/pubspec.yaml index 6e59f0bb4..be832c539 100644 --- a/pkgs/hooks_runner/test_data/transformer/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/transformer/pubspec.yaml @@ -15,4 +15,3 @@ dependencies: hooks: any dev_dependencies: - lints: ^6.0.0 diff --git a/pkgs/hooks_runner/test_data/treeshaking_native_libs/pubspec.yaml b/pkgs/hooks_runner/test_data/treeshaking_native_libs/pubspec.yaml index b66a077c1..1ff866803 100644 --- a/pkgs/hooks_runner/test_data/treeshaking_native_libs/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/treeshaking_native_libs/pubspec.yaml @@ -17,7 +17,6 @@ dependencies: dev_dependencies: ffigen: ^18.0.0 - lints: ^6.0.0 some_dev_dep: path: ../some_dev_dep/ test: ^1.25.15 diff --git a/pkgs/hooks_runner/test_data/use_all_api/pubspec.yaml b/pkgs/hooks_runner/test_data/use_all_api/pubspec.yaml index 25e63d055..52cbd25e3 100644 --- a/pkgs/hooks_runner/test_data/use_all_api/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/use_all_api/pubspec.yaml @@ -18,6 +18,5 @@ dependencies: logging: ^1.3.0 dev_dependencies: - lints: ^6.0.0 path: ^1.9.0 test: ^1.25.15 diff --git a/pkgs/hooks_runner/test_data/user_defines/pubspec.yaml b/pkgs/hooks_runner/test_data/user_defines/pubspec.yaml index 0a4afe38d..eaaa94499 100644 --- a/pkgs/hooks_runner/test_data/user_defines/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/user_defines/pubspec.yaml @@ -14,7 +14,6 @@ dependencies: hooks: any dev_dependencies: - lints: ^6.0.0 test: ^1.25.15 # Note: If pub workspaces are in use, the user-defines must be in the workspace diff --git a/pkgs/hooks_runner/test_data/wrong_build_output/pubspec.yaml b/pkgs/hooks_runner/test_data/wrong_build_output/pubspec.yaml index 180fe8b6f..ea2b04057 100644 --- a/pkgs/hooks_runner/test_data/wrong_build_output/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/wrong_build_output/pubspec.yaml @@ -14,4 +14,3 @@ dependencies: hooks: any dev_dependencies: - lints: ^6.0.0 diff --git a/pkgs/hooks_runner/test_data/wrong_build_output_2/pubspec.yaml b/pkgs/hooks_runner/test_data/wrong_build_output_2/pubspec.yaml index c1bbcea3d..3879219f1 100644 --- a/pkgs/hooks_runner/test_data/wrong_build_output_2/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/wrong_build_output_2/pubspec.yaml @@ -14,4 +14,3 @@ dependencies: hooks: any dev_dependencies: - lints: ^6.0.0 diff --git a/pkgs/hooks_runner/test_data/wrong_build_output_3/pubspec.yaml b/pkgs/hooks_runner/test_data/wrong_build_output_3/pubspec.yaml index c3af12e33..7334ef919 100644 --- a/pkgs/hooks_runner/test_data/wrong_build_output_3/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/wrong_build_output_3/pubspec.yaml @@ -14,4 +14,3 @@ dependencies: hooks: any dev_dependencies: - lints: ^6.0.0 diff --git a/pkgs/hooks_runner/test_data/wrong_linker/pubspec.yaml b/pkgs/hooks_runner/test_data/wrong_linker/pubspec.yaml index 8d510aeb1..6146a46d8 100644 --- a/pkgs/hooks_runner/test_data/wrong_linker/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/wrong_linker/pubspec.yaml @@ -14,4 +14,3 @@ dependencies: hooks: any dev_dependencies: - lints: ^6.0.0 diff --git a/pkgs/hooks_runner/test_data/wrong_namespace_asset/pubspec.yaml b/pkgs/hooks_runner/test_data/wrong_namespace_asset/pubspec.yaml index f100a8aba..b589a1a07 100644 --- a/pkgs/hooks_runner/test_data/wrong_namespace_asset/pubspec.yaml +++ b/pkgs/hooks_runner/test_data/wrong_namespace_asset/pubspec.yaml @@ -14,4 +14,3 @@ dependencies: hooks: any dev_dependencies: - lints: ^6.0.0 diff --git a/pkgs/jni/analysis_options.yaml b/pkgs/jni/analysis_options.yaml index 4d93db00d..a62710331 100644 --- a/pkgs/jni/analysis_options.yaml +++ b/pkgs/jni/analysis_options.yaml @@ -1,11 +1 @@ -include: package:dart_flutter_team_lints/analysis_options.yaml - -analyzer: - exclude: [build/**, third_party/**] - language: - strict-raw-types: true - -linter: - rules: - prefer_final_locals: true - prefer_const_declarations: true +include: package:native_test_helpers/analysis_options.yaml diff --git a/pkgs/jni/example/analysis_options.yaml b/pkgs/jni/example/analysis_options.yaml index 5e76acde9..f14d5ffab 100644 --- a/pkgs/jni/example/analysis_options.yaml +++ b/pkgs/jni/example/analysis_options.yaml @@ -1,14 +1,4 @@ -include: package:flutter_lints/flutter.yaml - -analyzer: - exclude: [build/**] - language: - strict-raw-types: true - -linter: - rules: - - prefer_final_locals - - prefer_const_declarations +include: package:native_test_helpers/analysis_options.yaml # Additional information about this file can be found at # https://dart.dev/guides/language/analysis-options diff --git a/pkgs/jni/example/pubspec.yaml b/pkgs/jni/example/pubspec.yaml index dec9bdd1f..0eaaa0f2a 100644 --- a/pkgs/jni/example/pubspec.yaml +++ b/pkgs/jni/example/pubspec.yaml @@ -1,31 +1,13 @@ name: jni_example description: Demonstrates how to use the jni plugin. -# The following line prevents the package from being accidentally published to -# pub.dev using `flutter pub publish`. This is preferred for private packages. -publish_to: 'none' # Remove this line if you wish to publish to pub.dev +publish_to: 'none' -# The following defines the version and build number for your application. -# A version number is three numbers separated by dots, like 1.2.43 -# followed by an optional build number separated by a +. -# Both the version and the builder number may be overridden in flutter -# build by specifying --build-name and --build-number, respectively. -# In Android, build-name is used as versionName while build-number used as versionCode. -# Read more about Android versioning at https://developer.android.com/studio/publish/versioning -# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. -# Read more about iOS versioning at -# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html version: 1.0.0+1 environment: sdk: '>=3.1.0 <4.0.0' -# Dependencies specify other packages that your package needs in order to work. -# To automatically upgrade your package dependencies to the latest versions -# consider running `flutter pub upgrade --major-versions`. Alternatively, -# dependencies can be manually updated by changing the version numbers below to -# the latest version available on pub.dev. To see which dependencies have newer -# versions available, run `flutter pub outdated`. dependencies: flutter: sdk: flutter @@ -40,8 +22,6 @@ dependencies: # the parent directory to use the current plugin's version. path: ../ - # The following adds the Cupertino Icons font to your application. - # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^1.0.2 dev_dependencies: @@ -51,50 +31,10 @@ dev_dependencies: integration_test: sdk: flutter - # The "flutter_lints" package below contains a set of recommended lints to - # encourage good coding practices. The lint set provided by the package is - # activated in the `analysis_options.yaml` file located at the root of your - # package. See that file for information about deactivating specific lint - # rules and activating additional ones. - flutter_lints: ^6.0.0 -# For information on the generic Dart part of this file, see the -# following page: https://dart.dev/tools/pub/pubspec - -# The following section is specific to Flutter packages. flutter: - # The following line ensures that the Material Icons font is - # included with your application, so that you can use the icons in - # the material Icons class. uses-material-design: true - # To add assets to your application, add an assets section, like this: - # assets: - # - images/a_dot_burr.jpeg - # - images/a_dot_ham.jpeg - # An image asset can refer to one or more resolution-specific "variants", see - # https://flutter.dev/assets-and-images/#resolution-aware - # For details regarding adding assets from package dependencies, see - # https://flutter.dev/assets-and-images/#from-packages - # To add custom fonts to your application, add a fonts section here, - # in this "flutter" section. Each entry in this list should have a - # "family" key with the font family name, and a "fonts" key with a - # list giving the asset and other descriptors for the font. For - # example: - # fonts: - # - family: Schyler - # fonts: - # - asset: fonts/Schyler-Regular.ttf - # - asset: fonts/Schyler-Italic.ttf - # style: italic - # - family: Trajan Pro - # fonts: - # - asset: fonts/TrajanPro.ttf - # - asset: fonts/TrajanPro_Bold.ttf - # weight: 700 - # - # For details regarding fonts from package dependencies, - # see https://flutter.dev/custom-fonts/#from-packages diff --git a/pkgs/jni/pubspec.yaml b/pkgs/jni/pubspec.yaml index a4baaceb8..d3f276fb7 100644 --- a/pkgs/jni/pubspec.yaml +++ b/pkgs/jni/pubspec.yaml @@ -28,8 +28,9 @@ dependencies: plugin_platform_interface: ^2.1.8 dev_dependencies: - dart_flutter_team_lints: ^3.5.2 - ## Pin ffigen version because we are depending on internal APIs. + native_test_helpers: + path: ../native_test_helpers + # Pin ffigen version because we are depending on internal APIs. ffigen: 16.1.0 logging: ^1.2.0 test: ^1.25.8 diff --git a/pkgs/jnigen/analysis_options.yaml b/pkgs/jnigen/analysis_options.yaml index 657e5b515..a62710331 100644 --- a/pkgs/jnigen/analysis_options.yaml +++ b/pkgs/jnigen/analysis_options.yaml @@ -1,15 +1 @@ -# Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file -# for details. All rights reserved. Use of this source code is governed by a -# BSD-style license that can be found in the LICENSE file. - -include: package:dart_flutter_team_lints/analysis_options.yaml - -analyzer: - exclude: [build/**, example/**] - language: - strict-raw-types: true - -linter: - rules: - prefer_final_locals: true - prefer_const_declarations: true +include: package:native_test_helpers/analysis_options.yaml diff --git a/pkgs/jnigen/android_test_runner/analysis_options.yaml b/pkgs/jnigen/android_test_runner/analysis_options.yaml index a5744c1cf..30b9b04b3 100644 --- a/pkgs/jnigen/android_test_runner/analysis_options.yaml +++ b/pkgs/jnigen/android_test_runner/analysis_options.yaml @@ -1,4 +1,4 @@ -include: package:flutter_lints/flutter.yaml +include: package:native_test_helpers/analysis_options.yaml -# Additional information about this file can be found at +# For additional information about configuring this file, see # https://dart.dev/guides/language/analysis-options diff --git a/pkgs/jnigen/android_test_runner/pubspec.yaml b/pkgs/jnigen/android_test_runner/pubspec.yaml index e42a2528a..642c743cd 100644 --- a/pkgs/jnigen/android_test_runner/pubspec.yaml +++ b/pkgs/jnigen/android_test_runner/pubspec.yaml @@ -1,32 +1,12 @@ name: android_integration_test description: jnigen integration test runner for android -# The following line prevents the package from being accidentally published to -# pub.dev using `flutter pub publish`. This is preferred for private packages. -publish_to: 'none' # Remove this line if you wish to publish to pub.dev +publish_to: 'none' -# The following defines the version and build number for your application. -# A version number is three numbers separated by dots, like 1.2.43 -# followed by an optional build number separated by a +. -# Both the version and the builder number may be overridden in flutter -# build by specifying --build-name and --build-number, respectively. -# In Android, build-name is used as versionName while build-number used as versionCode. -# Read more about Android versioning at https://developer.android.com/studio/publish/versioning -# In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion. -# Read more about iOS versioning at -# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -# In Windows, build-name is used as the major, minor, and patch parts -# of the product and file versions while build-number is used as the build suffix. version: 1.0.0+1 environment: sdk: '>=3.3.0 <4.0.0' -# Dependencies specify other packages that your package needs in order to work. -# To automatically upgrade your package dependencies to the latest versions -# consider running `flutter pub upgrade --major-versions`. Alternatively, -# dependencies can be manually updated by changing the version numbers below to -# the latest version available on pub.dev. To see which dependencies have newer -# versions available, run `flutter pub outdated`. dependencies: jni: path: ../../jni/ @@ -34,8 +14,6 @@ dependencies: flutter: sdk: flutter - # The following adds the Cupertino Icons font to your application. - # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^1.0.2 dev_dependencies: @@ -44,51 +22,13 @@ dev_dependencies: sdk: flutter integration_test: sdk: flutter + native_test_helpers: + path: ../native_test_helpers/ - # The "flutter_lints" package below contains a set of recommended lints to - # encourage good coding practices. The lint set provided by the package is - # activated in the `analysis_options.yaml` file located at the root of your - # package. See that file for information about deactivating specific lint - # rules and activating additional ones. - flutter_lints: ^6.0.0 -# For information on the generic Dart part of this file, see the -# following page: https://dart.dev/tools/pub/pubspec - -# The following section is specific to Flutter packages. flutter: - # The following line ensures that the Material Icons font is - # included with your application, so that you can use the icons in - # the material Icons class. uses-material-design: true - # To add assets to your application, add an assets section, like this: - # assets: - # - images/a_dot_burr.jpeg - # - images/a_dot_ham.jpeg - # An image asset can refer to one or more resolution-specific "variants", see - # https://flutter.dev/assets-and-images/#resolution-aware - # For details regarding adding assets from package dependencies, see - # https://flutter.dev/assets-and-images/#from-packages - # To add custom fonts to your application, add a fonts section here, - # in this "flutter" section. Each entry in this list should have a - # "family" key with the font family name, and a "fonts" key with a - # list giving the asset and other descriptors for the font. For - # example: - # fonts: - # - family: Schyler - # fonts: - # - asset: fonts/Schyler-Regular.ttf - # - asset: fonts/Schyler-Italic.ttf - # style: italic - # - family: Trajan Pro - # fonts: - # - asset: fonts/TrajanPro.ttf - # - asset: fonts/TrajanPro_Bold.ttf - # weight: 700 - # - # For details regarding fonts from package dependencies, - # see https://flutter.dev/custom-fonts/#from-packages diff --git a/pkgs/jnigen/example/in_app_java/analysis_options.yaml b/pkgs/jnigen/example/in_app_java/analysis_options.yaml index a5744c1cf..f14d5ffab 100644 --- a/pkgs/jnigen/example/in_app_java/analysis_options.yaml +++ b/pkgs/jnigen/example/in_app_java/analysis_options.yaml @@ -1,4 +1,4 @@ -include: package:flutter_lints/flutter.yaml +include: package:native_test_helpers/analysis_options.yaml # Additional information about this file can be found at # https://dart.dev/guides/language/analysis-options diff --git a/pkgs/jnigen/example/in_app_java/pubspec.yaml b/pkgs/jnigen/example/in_app_java/pubspec.yaml index e09b6dc21..e8387f22f 100644 --- a/pkgs/jnigen/example/in_app_java/pubspec.yaml +++ b/pkgs/jnigen/example/in_app_java/pubspec.yaml @@ -3,7 +3,7 @@ description: | Example on how to use jnigen to bridge between java and dart in a flutter project. -publish_to: 'none' # Remove this line if you wish to publish to pub.dev +publish_to: 'none' version: 1.0.0+1 @@ -16,8 +16,6 @@ dependencies: jni: path: ../../../jni/ - # The following adds the Cupertino Icons font to your application. - # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^1.0.2 dev_dependencies: @@ -26,42 +24,11 @@ dev_dependencies: jnigen: path: ../../ - flutter_lints: ^6.0.0 flutter: - # The following line ensures that the Material Icons font is - # included with your application, so that you can use the icons in - # the material Icons class. uses-material-design: true - # To add assets to your application, add an assets section, like this: - # assets: - # - images/a_dot_burr.jpeg - # - images/a_dot_ham.jpeg - # An image asset can refer to one or more resolution-specific "variants", see - # https://flutter.dev/assets-and-images/#resolution-aware - # For details regarding adding assets from package dependencies, see - # https://flutter.dev/assets-and-images/#from-packages - # To add custom fonts to your application, add a fonts section here, - # in this "flutter" section. Each entry in this list should have a - # "family" key with the font family name, and a "fonts" key with a - # list giving the asset and other descriptors for the font. For - # example: - # fonts: - # - family: Schyler - # fonts: - # - asset: fonts/Schyler-Regular.ttf - # - asset: fonts/Schyler-Italic.ttf - # style: italic - # - family: Trajan Pro - # fonts: - # - asset: fonts/TrajanPro.ttf - # - asset: fonts/TrajanPro_Bold.ttf - # weight: 700 - # - # For details regarding fonts from package dependencies, - # see https://flutter.dev/custom-fonts/#from-packages diff --git a/pkgs/jnigen/example/kotlin_plugin/analysis_options.yaml b/pkgs/jnigen/example/kotlin_plugin/analysis_options.yaml index ef9d9b785..f14d5ffab 100644 --- a/pkgs/jnigen/example/kotlin_plugin/analysis_options.yaml +++ b/pkgs/jnigen/example/kotlin_plugin/analysis_options.yaml @@ -1,4 +1,4 @@ -include: package:flutter_lints/flutter.yaml +include: package:native_test_helpers/analysis_options.yaml -# For additional information about configuring this file, see +# Additional information about this file can be found at # https://dart.dev/guides/language/analysis-options diff --git a/pkgs/jnigen/example/kotlin_plugin/example/analysis_options.yaml b/pkgs/jnigen/example/kotlin_plugin/example/analysis_options.yaml index a5744c1cf..f14d5ffab 100644 --- a/pkgs/jnigen/example/kotlin_plugin/example/analysis_options.yaml +++ b/pkgs/jnigen/example/kotlin_plugin/example/analysis_options.yaml @@ -1,4 +1,4 @@ -include: package:flutter_lints/flutter.yaml +include: package:native_test_helpers/analysis_options.yaml # Additional information about this file can be found at # https://dart.dev/guides/language/analysis-options diff --git a/pkgs/jnigen/example/kotlin_plugin/example/pubspec.yaml b/pkgs/jnigen/example/kotlin_plugin/example/pubspec.yaml index de00750bb..bd98196db 100644 --- a/pkgs/jnigen/example/kotlin_plugin/example/pubspec.yaml +++ b/pkgs/jnigen/example/kotlin_plugin/example/pubspec.yaml @@ -22,8 +22,6 @@ dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^6.0.0 - flutter: uses-material-design: true diff --git a/pkgs/jnigen/example/kotlin_plugin/pubspec.yaml b/pkgs/jnigen/example/kotlin_plugin/pubspec.yaml index e3b80378a..bd2989c50 100644 --- a/pkgs/jnigen/example/kotlin_plugin/pubspec.yaml +++ b/pkgs/jnigen/example/kotlin_plugin/pubspec.yaml @@ -20,7 +20,6 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^6.0.0 jnigen: path: ../../ diff --git a/pkgs/jnigen/example/notification_plugin/analysis_options.yaml b/pkgs/jnigen/example/notification_plugin/analysis_options.yaml index a5744c1cf..f14d5ffab 100644 --- a/pkgs/jnigen/example/notification_plugin/analysis_options.yaml +++ b/pkgs/jnigen/example/notification_plugin/analysis_options.yaml @@ -1,4 +1,4 @@ -include: package:flutter_lints/flutter.yaml +include: package:native_test_helpers/analysis_options.yaml # Additional information about this file can be found at # https://dart.dev/guides/language/analysis-options diff --git a/pkgs/jnigen/example/notification_plugin/example/analysis_options.yaml b/pkgs/jnigen/example/notification_plugin/example/analysis_options.yaml index a5744c1cf..f14d5ffab 100644 --- a/pkgs/jnigen/example/notification_plugin/example/analysis_options.yaml +++ b/pkgs/jnigen/example/notification_plugin/example/analysis_options.yaml @@ -1,4 +1,4 @@ -include: package:flutter_lints/flutter.yaml +include: package:native_test_helpers/analysis_options.yaml # Additional information about this file can be found at # https://dart.dev/guides/language/analysis-options diff --git a/pkgs/jnigen/example/notification_plugin/example/pubspec.yaml b/pkgs/jnigen/example/notification_plugin/example/pubspec.yaml index ac8dc368a..2472bc6fd 100644 --- a/pkgs/jnigen/example/notification_plugin/example/pubspec.yaml +++ b/pkgs/jnigen/example/notification_plugin/example/pubspec.yaml @@ -1,22 +1,8 @@ name: notification_plugin_example description: Demonstrates how to use notification_plugin. -# The following line prevents the package from being accidentally published to -# pub.dev using `flutter pub publish`. This is preferred for private packages. -publish_to: 'none' # Remove this line if you wish to publish to pub.dev +publish_to: 'none' -# The following defines the version and build number for your application. -# A version number is three numbers separated by dots, like 1.2.43 -# followed by an optional build number separated by a +. -# Both the version and the builder number may be overridden in flutter -# build by specifying --build-name and --build-number, respectively. -# In Android, build-name is used as versionName while build-number used as versionCode. -# Read more about Android versioning at https://developer.android.com/studio/publish/versioning -# In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion. -# Read more about iOS versioning at -# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -# In Windows, build-name is used as the major, minor, and patch parts -# of the product and file versions while build-number is used as the build suffix. version: 1.0.0+1 environment: @@ -31,59 +17,17 @@ dependencies: jni: path: ../../../../jni/ - # The following adds the Cupertino Icons font to your application. - # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^1.0.2 dev_dependencies: flutter_test: sdk: flutter - # The "flutter_lints" package below contains a set of recommended lints to - # encourage good coding practices. The lint set provided by the package is - # activated in the `analysis_options.yaml` file located at the root of your - # package. See that file for information about deactivating specific lint - # rules and activating additional ones. - flutter_lints: ^6.0.0 -# For information on the generic Dart part of this file, see the -# following page: https://dart.dev/tools/pub/pubspec - -# The following section is specific to Flutter packages. flutter: - # The following line ensures that the Material Icons font is - # included with your application, so that you can use the icons in - # the material Icons class. uses-material-design: true - # To add assets to your application, add an assets section, like this: - # assets: - # - images/a_dot_burr.jpeg - # - images/a_dot_ham.jpeg - # An image asset can refer to one or more resolution-specific "variants", see - # https://flutter.dev/assets-and-images/#resolution-aware - # For details regarding adding assets from package dependencies, see - # https://flutter.dev/assets-and-images/#from-packages - # To add custom fonts to your application, add a fonts section here, - # in this "flutter" section. Each entry in this list should have a - # "family" key with the font family name, and a "fonts" key with a - # list giving the asset and other descriptors for the font. For - # example: - # fonts: - # - family: Schyler - # fonts: - # - asset: fonts/Schyler-Regular.ttf - # - asset: fonts/Schyler-Italic.ttf - # style: italic - # - family: Trajan Pro - # fonts: - # - asset: fonts/TrajanPro.ttf - # - asset: fonts/TrajanPro_Bold.ttf - # weight: 700 - # - # For details regarding fonts from package dependencies, - # see https://flutter.dev/custom-fonts/#from-packages diff --git a/pkgs/jnigen/example/notification_plugin/pubspec.yaml b/pkgs/jnigen/example/notification_plugin/pubspec.yaml index e2291bdad..f0a12a0af 100644 --- a/pkgs/jnigen/example/notification_plugin/pubspec.yaml +++ b/pkgs/jnigen/example/notification_plugin/pubspec.yaml @@ -20,12 +20,8 @@ dev_dependencies: path: ../../ flutter_test: sdk: flutter - flutter_lints: ^6.0.0 -# For information on the generic Dart part of this file, see the -# following page: https://dart.dev/tools/pub/pubspec -# The following section is specific to Flutter packages. flutter: # This section identifies this Flutter project as a plugin project. # The 'pluginClass' specifies the class (in Java, Kotlin, Swift, Objective-C, etc.) @@ -44,33 +40,4 @@ flutter: android: ffiPlugin: true - # To add assets to your plugin package, add an assets section, like this: - # assets: - # - images/a_dot_burr.jpeg - # - images/a_dot_ham.jpeg - # - # For details regarding assets in packages, see - # https://flutter.dev/assets-and-images/#from-packages - # - # An image asset can refer to one or more resolution-specific "variants", see - # https://flutter.dev/assets-and-images/#resolution-aware - # To add custom fonts to your plugin package, add a fonts section here, - # in this "flutter" section. Each entry in this list should have a - # "family" key with the font family name, and a "fonts" key with a - # list giving the asset and other descriptors for the font. For - # example: - # fonts: - # - family: Schyler - # fonts: - # - asset: fonts/Schyler-Regular.ttf - # - asset: fonts/Schyler-Italic.ttf - # style: italic - # - family: Trajan Pro - # fonts: - # - asset: fonts/TrajanPro.ttf - # - asset: fonts/TrajanPro_Bold.ttf - # weight: 700 - # - # For details regarding fonts in packages, see - # https://flutter.dev/custom-fonts/#from-packages diff --git a/pkgs/jnigen/example/pdfbox_plugin/analysis_options.yaml b/pkgs/jnigen/example/pdfbox_plugin/analysis_options.yaml index 12e713abf..f14d5ffab 100644 --- a/pkgs/jnigen/example/pdfbox_plugin/analysis_options.yaml +++ b/pkgs/jnigen/example/pdfbox_plugin/analysis_options.yaml @@ -1,4 +1,4 @@ -include: package:lints/recommended.yaml +include: package:native_test_helpers/analysis_options.yaml # Additional information about this file can be found at # https://dart.dev/guides/language/analysis-options diff --git a/pkgs/jnigen/example/pdfbox_plugin/dart_example/analysis_options.yaml b/pkgs/jnigen/example/pdfbox_plugin/dart_example/analysis_options.yaml index 8d82fc428..f14d5ffab 100644 --- a/pkgs/jnigen/example/pdfbox_plugin/dart_example/analysis_options.yaml +++ b/pkgs/jnigen/example/pdfbox_plugin/dart_example/analysis_options.yaml @@ -1,4 +1,4 @@ -include: package:lints/recommended.yaml +include: package:native_test_helpers/analysis_options.yaml -# For additional information about configuring this file, see +# Additional information about this file can be found at # https://dart.dev/guides/language/analysis-options diff --git a/pkgs/jnigen/example/pdfbox_plugin/dart_example/pubspec.yaml b/pkgs/jnigen/example/pdfbox_plugin/dart_example/pubspec.yaml index b6c9b1775..2d108ede5 100644 --- a/pkgs/jnigen/example/pdfbox_plugin/dart_example/pubspec.yaml +++ b/pkgs/jnigen/example/pdfbox_plugin/dart_example/pubspec.yaml @@ -2,7 +2,6 @@ name: pdf_info description: Dart standalone example using jnigen PDFBox bindings. version: 1.0.0 publish_to: none -# homepage: https://www.example.com environment: sdk: '>=3.3.0 <4.0.0' @@ -15,5 +14,4 @@ dependencies: path: ../ dev_dependencies: - lints: ^6.0.0 test: ^1.16.0 diff --git a/pkgs/jnigen/example/pdfbox_plugin/example/analysis_options.yaml b/pkgs/jnigen/example/pdfbox_plugin/example/analysis_options.yaml index a5744c1cf..f14d5ffab 100644 --- a/pkgs/jnigen/example/pdfbox_plugin/example/analysis_options.yaml +++ b/pkgs/jnigen/example/pdfbox_plugin/example/analysis_options.yaml @@ -1,4 +1,4 @@ -include: package:flutter_lints/flutter.yaml +include: package:native_test_helpers/analysis_options.yaml # Additional information about this file can be found at # https://dart.dev/guides/language/analysis-options diff --git a/pkgs/jnigen/example/pdfbox_plugin/example/pubspec.yaml b/pkgs/jnigen/example/pdfbox_plugin/example/pubspec.yaml index e0a40c117..ad5cec892 100644 --- a/pkgs/jnigen/example/pdfbox_plugin/example/pubspec.yaml +++ b/pkgs/jnigen/example/pdfbox_plugin/example/pubspec.yaml @@ -1,31 +1,13 @@ name: pdfbox_example description: Demonstrates how to use pdfbox_plugin. -# The following line prevents the package from being accidentally published to -# pub.dev using `flutter pub publish`. This is preferred for private packages. -publish_to: 'none' # Remove this line if you wish to publish to pub.dev +publish_to: 'none' -# The following defines the version and build number for your application. -# A version number is three numbers separated by dots, like 1.2.43 -# followed by an optional build number separated by a +. -# Both the version and the builder number may be overridden in flutter -# build by specifying --build-name and --build-number, respectively. -# In Android, build-name is used as versionName while build-number used as versionCode. -# Read more about Android versioning at https://developer.android.com/studio/publish/versioning -# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. -# Read more about iOS versioning at -# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html version: 1.0.0+1 environment: sdk: '>=3.3.0 <4.0.0' -# Dependencies specify other packages that your package needs in order to work. -# To automatically upgrade your package dependencies to the latest versions -# consider running `flutter pub upgrade --major-versions`. Alternatively, -# dependencies can be manually updated by changing the version numbers below to -# the latest version available on pub.dev. To see which dependencies have newer -# versions available, run `flutter pub outdated`. dependencies: flutter: sdk: flutter @@ -41,59 +23,17 @@ dependencies: # the parent directory to use the current plugin's version. path: ../ - # The following adds the Cupertino Icons font to your application. - # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^1.0.2 dev_dependencies: flutter_test: sdk: flutter - # The "flutter_lints" package below contains a set of recommended lints to - # encourage good coding practices. The lint set provided by the package is - # activated in the `analysis_options.yaml` file located at the root of your - # package. See that file for information about deactivating specific lint - # rules and activating additional ones. - flutter_lints: ^6.0.0 -# For information on the generic Dart part of this file, see the -# following page: https://dart.dev/tools/pub/pubspec - -# The following section is specific to Flutter packages. flutter: - # The following line ensures that the Material Icons font is - # included with your application, so that you can use the icons in - # the material Icons class. uses-material-design: true - # To add assets to your application, add an assets section, like this: - # assets: - # - images/a_dot_burr.jpeg - # - images/a_dot_ham.jpeg - # An image asset can refer to one or more resolution-specific "variants", see - # https://flutter.dev/assets-and-images/#resolution-aware - # For details regarding adding assets from package dependencies, see - # https://flutter.dev/assets-and-images/#from-packages - # To add custom fonts to your application, add a fonts section here, - # in this "flutter" section. Each entry in this list should have a - # "family" key with the font family name, and a "fonts" key with a - # list giving the asset and other descriptors for the font. For - # example: - # fonts: - # - family: Schyler - # fonts: - # - asset: fonts/Schyler-Regular.ttf - # - asset: fonts/Schyler-Italic.ttf - # style: italic - # - family: Trajan Pro - # fonts: - # - asset: fonts/TrajanPro.ttf - # - asset: fonts/TrajanPro_Bold.ttf - # weight: 700 - # - # For details regarding fonts from package dependencies, - # see https://flutter.dev/custom-fonts/#from-packages diff --git a/pkgs/jnigen/example/pdfbox_plugin/pubspec.yaml b/pkgs/jnigen/example/pdfbox_plugin/pubspec.yaml index 7fe79b0bf..dbe2243f2 100644 --- a/pkgs/jnigen/example/pdfbox_plugin/pubspec.yaml +++ b/pkgs/jnigen/example/pdfbox_plugin/pubspec.yaml @@ -7,21 +7,17 @@ homepage: https://github.com/dart-lang/native environment: sdk: '>=3.3.0 <4.0.0' - #flutter: ">=2.11.0" dependencies: jni: path: ../../../jni/ - #flutter: - #sdk: flutter plugin_platform_interface: ^2.0.2 dev_dependencies: - ## Path dependency for sake of the example + # Path dependency for sake of the example jnigen: path: ../../ test: any - lints: ^6.0.0 flutter: # A JNI plugin uses FFI for calling into C code. Thus the relevant shared diff --git a/pkgs/jnigen/pubspec.yaml b/pkgs/jnigen/pubspec.yaml index cd2dd31b7..fb0aee038 100644 --- a/pkgs/jnigen/pubspec.yaml +++ b/pkgs/jnigen/pubspec.yaml @@ -33,7 +33,8 @@ dependencies: dev_dependencies: build_runner: ^2.4.12 - dart_flutter_team_lints: ^3.5.2 + native_test_helpers: + path: ../native_test_helpers jni: ^0.13.0 json_serializable: ^6.8.0 test: ^1.25.8 diff --git a/pkgs/json_syntax_generator/analysis_options.yaml b/pkgs/json_syntax_generator/analysis_options.yaml index c0462a3a7..a62710331 100644 --- a/pkgs/json_syntax_generator/analysis_options.yaml +++ b/pkgs/json_syntax_generator/analysis_options.yaml @@ -1,19 +1 @@ -include: package:dart_flutter_team_lints/analysis_options.yaml - -analyzer: - language: - strict-raw-types: true - plugins: - # - custom_lint # https://github.com/dart-lang/sdk/issues/60784 - -linter: - rules: - - avoid_positional_boolean_parameters - - prefer_const_declarations - - prefer_expression_function_bodies - - prefer_final_in_for_each - - prefer_final_locals - -custom_lint: - rules: - - avoid_import_outside_src +include: package:native_test_helpers/analysis_options.yaml diff --git a/pkgs/json_syntax_generator/pubspec.yaml b/pkgs/json_syntax_generator/pubspec.yaml index 43afec773..09854516f 100644 --- a/pkgs/json_syntax_generator/pubspec.yaml +++ b/pkgs/json_syntax_generator/pubspec.yaml @@ -18,9 +18,7 @@ dependencies: json_schema: ^5.2.0 dev_dependencies: - custom_lint: ^0.7.5 - dart_flutter_team_lints: ^3.5.2 + native_test_helpers: + path: ../native_test_helpers path: ^1.9.1 - repo_lint_rules: - path: ../repo_lint_rules/ test: ^1.25.15 diff --git a/pkgs/native_doc_dartifier/analysis_options.yaml b/pkgs/native_doc_dartifier/analysis_options.yaml index dd3dcdac5..a62710331 100644 --- a/pkgs/native_doc_dartifier/analysis_options.yaml +++ b/pkgs/native_doc_dartifier/analysis_options.yaml @@ -1,12 +1 @@ -include: package:dart_flutter_team_lints/analysis_options.yaml - -analyzer: - language: - strict-raw-types: true - -linter: - rules: - - prefer_const_declarations - - prefer_expression_function_bodies - - prefer_final_in_for_each - - prefer_final_locals +include: package:native_test_helpers/analysis_options.yaml diff --git a/pkgs/native_doc_dartifier/pubspec.yaml b/pkgs/native_doc_dartifier/pubspec.yaml index 15610ebed..69d4c99f7 100644 --- a/pkgs/native_doc_dartifier/pubspec.yaml +++ b/pkgs/native_doc_dartifier/pubspec.yaml @@ -7,14 +7,13 @@ issue_tracker: https://github.com/dart-lang/native/issues?q=is%3Aopen+label%3Apa environment: sdk: ">=3.7.0 <4.0.0" -# Add regular dependencies here. dependencies: - # path: ^1.8.0 analyzer: ^7.4.5 google_generative_ai: ^0.4.7 jni: ^0.14.2 dev_dependencies: - dart_flutter_team_lints: ^3.5.2 + native_test_helpers: + path: ../native_test_helpers jnigen: ^0.14.2 test: ^1.26.0 diff --git a/pkgs/native_test_helpers/analysis_options.yaml b/pkgs/native_test_helpers/analysis_options.yaml index c0462a3a7..94dcfadb1 100644 --- a/pkgs/native_test_helpers/analysis_options.yaml +++ b/pkgs/native_test_helpers/analysis_options.yaml @@ -1,3 +1,7 @@ +# This file represents the canonical analysis options for this repository. +# Every package in the repository is expected to apply these (this is enforced +# by CI). + include: package:dart_flutter_team_lints/analysis_options.yaml analyzer: @@ -13,6 +17,18 @@ linter: - prefer_expression_function_bodies - prefer_final_in_for_each - prefer_final_locals + - public_member_api_docs + + # From flutter_lints (analysis_options may only have one include statement) + - avoid_unnecessary_containers + - avoid_web_libraries_in_flutter + - no_logic_in_create_state + - prefer_const_constructors_in_immutables + - sized_box_for_whitespace + - sort_child_properties_last + - use_build_context_synchronously + - use_full_hex_values_for_flutter_colors + - use_key_in_widget_constructors custom_lint: rules: diff --git a/pkgs/native_toolchain_c/analysis_options.yaml b/pkgs/native_toolchain_c/analysis_options.yaml index c0462a3a7..a62710331 100644 --- a/pkgs/native_toolchain_c/analysis_options.yaml +++ b/pkgs/native_toolchain_c/analysis_options.yaml @@ -1,19 +1 @@ -include: package:dart_flutter_team_lints/analysis_options.yaml - -analyzer: - language: - strict-raw-types: true - plugins: - # - custom_lint # https://github.com/dart-lang/sdk/issues/60784 - -linter: - rules: - - avoid_positional_boolean_parameters - - prefer_const_declarations - - prefer_expression_function_bodies - - prefer_final_in_for_each - - prefer_final_locals - -custom_lint: - rules: - - avoid_import_outside_src +include: package:native_test_helpers/analysis_options.yaml diff --git a/pkgs/native_toolchain_c/pubspec.yaml b/pkgs/native_toolchain_c/pubspec.yaml index 54de4073e..dcb47c677 100644 --- a/pkgs/native_toolchain_c/pubspec.yaml +++ b/pkgs/native_toolchain_c/pubspec.yaml @@ -26,10 +26,6 @@ dependencies: dev_dependencies: collection: ^1.19.1 - custom_lint: ^0.7.5 - dart_flutter_team_lints: ^3.5.2 native_test_helpers: path: ../native_test_helpers/ - repo_lint_rules: - path: ../repo_lint_rules/ test: ^1.25.15 diff --git a/pkgs/objective_c/analysis_options.yaml b/pkgs/objective_c/analysis_options.yaml index c0248d0f1..a62710331 100644 --- a/pkgs/objective_c/analysis_options.yaml +++ b/pkgs/objective_c/analysis_options.yaml @@ -1,5 +1 @@ -include: package:dart_flutter_team_lints/analysis_options.yaml - -analyzer: - language: - strict-raw-types: true +include: package:native_test_helpers/analysis_options.yaml diff --git a/pkgs/objective_c/example/analysis_options.yaml b/pkgs/objective_c/example/analysis_options.yaml index a5744c1cf..f14d5ffab 100644 --- a/pkgs/objective_c/example/analysis_options.yaml +++ b/pkgs/objective_c/example/analysis_options.yaml @@ -1,4 +1,4 @@ -include: package:flutter_lints/flutter.yaml +include: package:native_test_helpers/analysis_options.yaml # Additional information about this file can be found at # https://dart.dev/guides/language/analysis-options diff --git a/pkgs/objective_c/example/pubspec.yaml b/pkgs/objective_c/example/pubspec.yaml index 0b0e53e86..8aa787f60 100644 --- a/pkgs/objective_c/example/pubspec.yaml +++ b/pkgs/objective_c/example/pubspec.yaml @@ -21,7 +21,6 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^6.0.0 flutter: uses-material-design: true diff --git a/pkgs/objective_c/pubspec.yaml b/pkgs/objective_c/pubspec.yaml index 313b0c395..7a4d74f96 100644 --- a/pkgs/objective_c/pubspec.yaml +++ b/pkgs/objective_c/pubspec.yaml @@ -26,7 +26,6 @@ dependencies: dev_dependencies: args: ^2.6.0 - dart_flutter_team_lints: ^3.5.2 ffigen: ^19.1.0 flutter_test: sdk: flutter diff --git a/pkgs/repo_lint_rules/analysis_options.yaml b/pkgs/repo_lint_rules/analysis_options.yaml index c0462a3a7..a62710331 100644 --- a/pkgs/repo_lint_rules/analysis_options.yaml +++ b/pkgs/repo_lint_rules/analysis_options.yaml @@ -1,19 +1 @@ -include: package:dart_flutter_team_lints/analysis_options.yaml - -analyzer: - language: - strict-raw-types: true - plugins: - # - custom_lint # https://github.com/dart-lang/sdk/issues/60784 - -linter: - rules: - - avoid_positional_boolean_parameters - - prefer_const_declarations - - prefer_expression_function_bodies - - prefer_final_in_for_each - - prefer_final_locals - -custom_lint: - rules: - - avoid_import_outside_src +include: package:native_test_helpers/analysis_options.yaml diff --git a/pkgs/repo_lint_rules/pubspec.yaml b/pkgs/repo_lint_rules/pubspec.yaml index 439ef8cc6..e756a2f5d 100644 --- a/pkgs/repo_lint_rules/pubspec.yaml +++ b/pkgs/repo_lint_rules/pubspec.yaml @@ -12,8 +12,9 @@ environment: dependencies: analyzer: ^7.3.0 custom_lint_builder: ^0.7.5 - dart_flutter_team_lints: ^3.5.2 path: ^1.9.1 dev_dependencies: custom_lint: ^0.7.5 + native_test_helpers: + path: ../native_test_helpers diff --git a/pkgs/swift2objc/analysis_options.yaml b/pkgs/swift2objc/analysis_options.yaml index c0248d0f1..a62710331 100644 --- a/pkgs/swift2objc/analysis_options.yaml +++ b/pkgs/swift2objc/analysis_options.yaml @@ -1,5 +1 @@ -include: package:dart_flutter_team_lints/analysis_options.yaml - -analyzer: - language: - strict-raw-types: true +include: package:native_test_helpers/analysis_options.yaml diff --git a/pkgs/swift2objc/pubspec.yaml b/pkgs/swift2objc/pubspec.yaml index b7b3a0d0d..c9c5bad82 100644 --- a/pkgs/swift2objc/pubspec.yaml +++ b/pkgs/swift2objc/pubspec.yaml @@ -25,7 +25,6 @@ environment: dev_dependencies: args: ^2.6.0 - dart_flutter_team_lints: ^3.5.2 native_test_helpers: path: ../native_test_helpers test: ^1.21.1 diff --git a/pkgs/swiftgen/analysis_options.yaml b/pkgs/swiftgen/analysis_options.yaml index c0248d0f1..a62710331 100644 --- a/pkgs/swiftgen/analysis_options.yaml +++ b/pkgs/swiftgen/analysis_options.yaml @@ -1,5 +1 @@ -include: package:dart_flutter_team_lints/analysis_options.yaml - -analyzer: - language: - strict-raw-types: true +include: package:native_test_helpers/analysis_options.yaml diff --git a/pkgs/swiftgen/example/pubspec.yaml b/pkgs/swiftgen/example/pubspec.yaml index ff54ce7c3..3805ea4db 100644 --- a/pkgs/swiftgen/example/pubspec.yaml +++ b/pkgs/swiftgen/example/pubspec.yaml @@ -20,7 +20,6 @@ dependencies: path: .. dev_dependencies: - dart_flutter_team_lints: ^3.5.2 test: ^1.21.1 dependency_overrides: diff --git a/pkgs/swiftgen/pubspec.yaml b/pkgs/swiftgen/pubspec.yaml index 0a64269fd..21095b152 100644 --- a/pkgs/swiftgen/pubspec.yaml +++ b/pkgs/swiftgen/pubspec.yaml @@ -26,7 +26,6 @@ dependencies: path: ^1.9.1 dev_dependencies: - dart_flutter_team_lints: ^3.5.2 native_test_helpers: path: ../native_test_helpers test: ^1.21.1