diff --git a/analysis_options.yaml b/analysis_options.yaml index 1ce0eed14..e6bbadcc0 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -3,15 +3,15 @@ include: package:lints/recommended.yaml analyzer: errors: always_declare_return_types: error - always_put_control_body_on_new_line: warning + always_put_control_body_on_new_line: error avoid_renaming_method_parameters: error avoid_void_async: error camel_case_types: error constant_identifier_names: error deprecated_member_use_from_same_package: ignore non_constant_identifier_names: error - prefer_single_quotes: warning - require_trailing_commas: warning + prefer_single_quotes: error + require_trailing_commas: error todo: ignore linter: diff --git a/dio_test/analysis_options.yaml b/dio_test/analysis_options.yaml new file mode 100644 index 000000000..855abd7dc --- /dev/null +++ b/dio_test/analysis_options.yaml @@ -0,0 +1,5 @@ +include: ../analysis_options.yaml + +linter: + rules: + depend_on_referenced_packages: false diff --git a/dio_test/lib/src/test/suite.dart b/dio_test/lib/src/test/suite.dart index c05b4a8de..05daa2201 100644 --- a/dio_test/lib/src/test/suite.dart +++ b/dio_test/lib/src/test/suite.dart @@ -23,5 +23,8 @@ const _tests = [ void dioAdapterTestSuite( Dio Function(String baseUrl) create, { List tests = _tests, -}) => - tests.forEach((test) => test(create)); +}) { + for (final test in tests) { + test(create); + } +} diff --git a/dio_test/pubspec.yaml b/dio_test/pubspec.yaml index b3454e984..3033b41a9 100644 --- a/dio_test/pubspec.yaml +++ b/dio_test/pubspec.yaml @@ -13,4 +13,5 @@ dependencies: path: any dev_dependencies: + lints: any test: any