Skip to content

Commit

Permalink
🚨 Update lints
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Jun 19, 2024
1 parent 47abf18 commit 0d06244
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
6 changes: 3 additions & 3 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 5 additions & 0 deletions dio_test/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
include: ../analysis_options.yaml

linter:
rules:
depend_on_referenced_packages: false
7 changes: 5 additions & 2 deletions dio_test/lib/src/test/suite.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,8 @@ const _tests = [
void dioAdapterTestSuite(
Dio Function(String baseUrl) create, {
List<TestSuiteFunction> tests = _tests,
}) =>
tests.forEach((test) => test(create));
}) {
for (final test in tests) {
test(create);
}
}
1 change: 1 addition & 0 deletions dio_test/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ dependencies:
path: any

dev_dependencies:
lints: any
test: any

0 comments on commit 0d06244

Please sign in to comment.