Skip to content

Commit a65c680

Browse files
committed
feat: omit_obvious_local_variable_types, specify_nonobvious_local_variable_types
https://github.com/dart-lang/linter/issues/3480
1 parent 6d0269d commit a65c680

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
**Prerelease**
44

55
- `use_truncating_division` [dart-lang/linter#3930][]
6+
- OPT-IN: `omit_obvious_local_variable_types` [dart-lang/linter#3480][]
7+
- OPT-IN: `specify_nonobvious_local_variable_types` [dart-lang/linter#3480][]
68

79
## [3.6.0-0][3.6.0]
810

@@ -206,6 +208,7 @@ No changes.
206208
[dart-lang/linter#3414]: https://github.com/dart-lang/linter/pull/3414
207209
[dart-lang/linter#3431]: https://github.com/dart-lang/linter/pull/3431
208210
[dart-lang/linter#3468]: https://github.com/dart-lang/linter/pull/3468
211+
[dart-lang/linter#3480]: https://github.com/dart-lang/linter/issues/3480
209212
[dart-lang/linter#3497]: https://github.com/dart-lang/linter/pull/3497
210213
[dart-lang/linter#3513]: https://github.com/dart-lang/linter/pull/3513
211214
[dart-lang/linter#3578]: https://github.com/dart-lang/linter/pull/3578

lib/analysis_options.3.6.0.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ linter:
111111
- null_check_on_nullable_type_parameter
112112
- null_closures
113113
- omit_local_variable_types
114+
# - omit_obvious_local_variable_types # subset of omit_local_variable_types
114115
- one_member_abstracts
115116
- only_throw_errors
116117
- overridden_fields
@@ -169,6 +170,7 @@ linter:
169170
# - sort_constructors_first # conflicts with auto-sorting all members, per [Fuschia style guide](https://fuchsia.dev/fuchsia-src/development/languages/dart/style#do_order_members_using_the_dart_analyzer)
170171
# - sort_pub_dependencies # conflicts with grouping local packages separately. Do keep groups sorted.
171172
- sort_unnamed_constructors_first
173+
# - specify_nonobvious_local_variable_types # conflicts: omit_local_variable_types
172174
- test_types_in_equals
173175
- throw_in_finally
174176
- tighten_type_of_initializing_formals

0 commit comments

Comments
 (0)