Skip to content

Commit b12a95f

Browse files
jakemac53kevmoo
authored andcommitted
Add lint to avoid types in parameter names (#200)
1 parent 60b29d1 commit b12a95f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

analysis_options.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ linter:
1515
- avoid_null_checks_in_equality_operators
1616
- avoid_return_types_on_setters
1717
- avoid_returning_null
18+
- avoid_types_as_parameter_names
1819
- avoid_unused_constructor_parameters
1920
- await_only_futures
2021
- camel_case_types

json_serializable/test/generic_files/generic_class.wrapped.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ class GenericClass<T extends num, S> extends Object
3838
_$GenericClassFromJson<T, S>(json);
3939
}
4040

41-
T _dataFromJson<T, S, U>(Map<String, dynamic> input, [S other1, U, other2]) =>
41+
T _dataFromJson<T, S, U>(Map<String, dynamic> input, [S other1, U other2]) =>
4242
input['value'] as T;
4343

44-
Map<String, dynamic> _dataToJson<T, S, U>(T input, [S other1, U, other2]) =>
44+
Map<String, dynamic> _dataToJson<T, S, U>(T input, [S other1, U other2]) =>
4545
{'value': input};

0 commit comments

Comments
 (0)